Searched refs:pow2 (Results 1 – 1 of 1) sorted by last modified time
115 inline unsigned int pow2( unsigned int c ) { return 0x1 << c; } in pow2() function116 inline unsigned int mask( unsigned int c ) { return ((unsigned int)(-1)) / (pow2(pow2(c)) + 1); } in mask()117 …ount( unsigned int x, unsigned int c ) { return ((x) & mask(c)) + (((x) >> (pow2(c))) & mask(c)); } in count()
Completed in 69 milliseconds