Searched refs:bit (Results 1 – 7 of 7) sorted by relevance
61 int bit, result; in bitmask_ffz() local65 bit = ffs(~bitmask[i]); in bitmask_ffz()66 if (bit) { in bitmask_ffz()68 bit--; in bitmask_ffz()69 result = BITS_PER_WORD * i + bit; in bitmask_ffz()78 static inline void bitmask_set(unsigned int *bitmask, int bit) in bitmask_set() argument80 bitmask[BIT_WORD(bit)] |= BIT_MASK(bit); in bitmask_set()83 static inline void bitmask_clear(unsigned int *bitmask, int bit) in bitmask_clear() argument85 bitmask[BIT_WORD(bit)] &= ~BIT_MASK(bit); in bitmask_clear()88 static inline bool bitmask_test(unsigned int *bitmask, int bit) in bitmask_test() argument[all …]
112 GGLfixed bit = 0x800000; in gglSqrtx() local115 GGLfixed temp = bit + (r<<1); in gglSqrtx()119 r += bit; in gglSqrtx()123 } while (bit>>=1); in gglSqrtx()
108 static int bitmap_get_bit(u8 *bitmap, u32 bit) in bitmap_get_bit() argument110 if (bitmap[bit / 8] & 1 << (bit % 8)) in bitmap_get_bit()
190 static int bitmap_set_bit(u8 *bitmap, u32 bit) in bitmap_set_bit() argument192 if (bitmap[bit / 8] & 1 << (bit % 8)) in bitmap_set_bit()195 bitmap[bit / 8] |= 1 << (bit % 8); in bitmap_set_bit()199 static int bitmap_set_8_bits(u8 *bitmap, u32 bit) in bitmap_set_8_bits() argument201 int ret = bitmap[bit / 8]; in bitmap_set_8_bits()202 bitmap[bit / 8] = 0xFF; in bitmap_set_8_bits()
323 static int bitmap_get_bit(u8 *bitmap, u32 bit) in bitmap_get_bit() argument325 if (bitmap[bit / 8] & (1 << (bit % 8))) in bitmap_get_bit()331 static void bitmap_clear_bit(u8 *bitmap, u32 bit) in bitmap_clear_bit() argument333 bitmap[bit / 8] &= ~(1 << (bit % 8)); in bitmap_clear_bit()
75 # smear byte into 32 bit word
29 32 bit words which are sent across the wire in little endian format.