Home
last modified time | relevance | path

Searched refs:bit (Results 1 – 7 of 7) sorted by relevance

/system/core/include/cutils/
Dbitops.h61 int bit, result; in bitmask_ffz() local
65 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() argument
80 bitmask[BIT_WORD(bit)] |= BIT_MASK(bit); in bitmask_set()
83 static inline void bitmask_clear(unsigned int *bitmask, int bit) in bitmask_clear() argument
85 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 …]
/system/core/libpixelflinger/
Dfixed.cpp112 GGLfixed bit = 0x800000; in gglSqrtx() local
115 GGLfixed temp = bit + (r<<1); in gglSqrtx()
119 r += bit; in gglSqrtx()
123 } while (bit>>=1); in gglSqrtx()
/system/extras/ext4_utils/
Dext2simg.c108 static int bitmap_get_bit(u8 *bitmap, u32 bit) in bitmap_get_bit() argument
110 if (bitmap[bit / 8] & 1 << (bit % 8)) in bitmap_get_bit()
Dallocate.c190 static int bitmap_set_bit(u8 *bitmap, u32 bit) in bitmap_set_bit() argument
192 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() argument
201 int ret = bitmap[bit / 8]; in bitmap_set_8_bits()
202 bitmap[bit / 8] = 0xFF; in bitmap_set_8_bits()
Dext4fixup.c323 static int bitmap_get_bit(u8 *bitmap, u32 bit) in bitmap_get_bit() argument
325 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() argument
333 bitmap[bit / 8] &= ~(1 << (bit % 8)); in bitmap_clear_bit()
/system/core/libcutils/tests/memset_mips/
Dmemset_cmips.S75 # smear byte into 32 bit word
/system/core/adb/
Dprotocol.txt29 32 bit words which are sent across the wire in little endian format.