| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

# pfmlib_comp_x86_64.h File Reference

Go to the source code of this file.

## Functions
static unsigned long | pfmlib_popcnt (unsigned long v)

## Function Documentation

static unsigned long pfmlib_popcnt | ( | unsigned long | v | ) | `[inline, static]`

Definition at line 40 of file pfmlib_comp_x86_64.h.

    00041 {
    00042         unsigned long sum = 0;
    00043
    00044         for(; v ; v >>=1) {
    00045                 if (v & 0x1) sum++;
    00046         }
    00047         return sum;
    00048 }

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines