Searched refs:bit (Results 1 – 8 of 8) sorted by relevance
/system/core/include/cutils/ |
D | bitops.h | 61 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() 88 static inline void bitmask_set(unsigned int *bitmask, int bit) in bitmask_set() argument 90 bitmask[BIT_WORD(bit)] |= BIT_MASK(bit); in bitmask_set() 93 static inline void bitmask_clear(unsigned int *bitmask, int bit) in bitmask_clear() argument 95 bitmask[BIT_WORD(bit)] &= ~BIT_MASK(bit); in bitmask_clear() 98 static inline bool bitmask_test(unsigned int *bitmask, int bit) in bitmask_test() argument [all …]
|
/system/media/audio_utils/ |
D | primitives.c | 274 uint32_t bit, ormask; \ 278 bit = ormask & -ormask; /* get lowest bit */ \ 279 ormask ^= bit; /* remove lowest bit */ \ 280 if (dmask & bit) { \ 281 *dst++ = smask & bit ? *src++ : zero; \ 397 uint32_t bit, ormask = src_mask | dst_mask; in memcpy_by_index_array_initialization() local 400 bit = ormask & -ormask; /* get lowest bit */ in memcpy_by_index_array_initialization() 401 ormask ^= bit; /* remove lowest bit */ in memcpy_by_index_array_initialization() 402 if (src_mask & dst_mask & bit) { /* matching channel */ in memcpy_by_index_array_initialization() 404 } else if (src_mask & bit) { /* source channel only */ in memcpy_by_index_array_initialization()
|
/system/core/libpixelflinger/ |
D | fixed.cpp | 112 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/ |
D | ext4_utils.c | 64 int bitmap_get_bit(u8 *bitmap, u32 bit) in bitmap_get_bit() argument 66 if (bitmap[bit / 8] & (1 << (bit % 8))) in bitmap_get_bit() 72 void bitmap_clear_bit(u8 *bitmap, u32 bit) in bitmap_clear_bit() argument 74 bitmap[bit / 8] &= ~(1 << (bit % 8)); in bitmap_clear_bit()
|
D | allocate.c | 190 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()
|
D | ext4_utils.h | 133 int bitmap_get_bit(u8 *bitmap, u32 bit); 134 void bitmap_clear_bit(u8 *bitmap, u32 bit);
|
/system/core/libmincrypt/ |
D | p256.c | 58 int p256_get_bit(const p256_int* scalar, int bit) { in p256_get_bit() argument 59 return (P256_DIGIT(scalar, bit / P256_BITSPERDIGIT) in p256_get_bit() 60 >> (bit & (P256_BITSPERDIGIT - 1))) & 1; in p256_get_bit()
|
/system/core/adb/ |
D | protocol.txt | 29 32 bit words which are sent across the wire in little endian format.
|