Home
last modified time | relevance | path

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

12345678910

/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()
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/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/
Dbitops.h33 … for_each_set_bit(bit,addr,size) for((bit) = find_first_bit((addr), (size)); (bit) < (size); (bit)… argument
34 …h_set_bit_from(bit,addr,size) for((bit) = find_next_bit((addr), (size), (bit)); (bit) < (size); (b… argument
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/
Dbitops.h19 #define for_each_set_bit(bit, addr, size) \ argument
20 for ((bit) = find_first_bit((addr), (size)); \
21 (bit) < (size); \
22 (bit) = find_next_bit((addr), (size), (bit) + 1))
25 #define for_each_set_bit_from(bit, addr, size) \ argument
26 for ((bit) = find_next_bit((addr), (size), (bit)); \
27 (bit) < (size); \
28 (bit) = find_next_bit((addr), (size), (bit) + 1))
/system/sepolicy/tools/sepolicy-analyze/
Dperm.c10 unsigned int bit; in list_permissive() local
15 ebitmap_for_each_bit(&policydb->permissive_map, n, bit) in list_permissive()
17 if (ebitmap_node_get_bit(n, bit)) { in list_permissive()
18 printf("%s\n", policydb->p_type_val_to_name[bit -1]); in list_permissive()
Dneverallow.c30 unsigned int bit; in read_typeset() local
144 for (bit = 0; bit < policydb->p_types.nprim; bit++) { in read_typeset()
145 if (ebitmap_get_bit(&typeset->negset, bit)) in read_typeset()
147 if (policydb->type_val_to_struct[bit] && in read_typeset()
148 policydb->type_val_to_struct[bit]->flavor == TYPE_ATTRIB) in read_typeset()
150 if (ebitmap_set_bit(&typeset->types, bit, 1)) in read_typeset()
155 ebitmap_for_each_bit(&typeset->negset, n, bit) { in read_typeset()
156 if (!ebitmap_node_get_bit(n, bit)) in read_typeset()
158 if (ebitmap_set_bit(&typeset->types, bit, 0)) in read_typeset()
163 for (bit = 0; bit < policydb->p_types.nprim; bit++) { in read_typeset()
[all …]
Dattribute.c11 unsigned int bit; in list_attribute() local
24 ebitmap_for_each_bit(&policydb->attr_type_map[attr->s.value - 1], n, bit) { in list_attribute()
25 if (!ebitmap_node_get_bit(n, bit)) in list_attribute()
27 printf("%s\n", policydb->p_type_val_to_name[bit]); in list_attribute()
/system/sepolicy/
Ddebuggerd.te32 # This only happens on 64 bit systems, where all requests go to the 64 bit
33 # debuggerd and get redirected to the 32 bit debuggerd if the process is 32 bit.
Dnetd.te12 # the setgid bit should be cleared, regardless of whether the setgid
13 # bit was even set. We do not appear to truly need this capability
/system/media/audio_utils/
Dprimitives.c347 uint32_t bit, ormask; \
351 bit = ormask & -ormask; /* get lowest bit */ \
352 ormask ^= bit; /* remove lowest bit */ \
353 if (dmask & bit) { \
354 *dst++ = smask & bit ? *src++ : zero; \
470 uint32_t bit, ormask = src_mask | dst_mask; in memcpy_by_index_array_initialization() local
473 bit = ormask & -ormask; /* get lowest bit */ in memcpy_by_index_array_initialization()
474 ormask ^= bit; /* remove lowest bit */ in memcpy_by_index_array_initialization()
475 if (src_mask & dst_mask & bit) { /* matching channel */ in memcpy_by_index_array_initialization()
477 } else if (src_mask & bit) { /* source channel only */ in memcpy_by_index_array_initialization()
/system/keymaster/
DAndroid.mk36 LOCAL_CLANG_CFLAGS += -fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp
92 LOCAL_CLANG_CFLAGS += -fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp
129 LOCAL_CLANG_CFLAGS += -fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp
172 LOCAL_CLANG_CFLAGS += -fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp
/system/core/libmemunreachable/
DAllocator.cpp262 unsigned int bit = __builtin_ffs(free_bitmap_[i]) - 1; in Alloc() local
263 assert(free_bitmap_[i] & (1U << bit)); in Alloc()
264 free_bitmap_[i] &= ~(1U << bit); in Alloc()
265 unsigned int n = i * 32 + bit; in Alloc()
286 unsigned int bit = n % 32; in Free() local
289 assert(!(free_bitmap_[i] & (1U << bit))); in Free()
290 free_bitmap_[i] |= 1U << bit; in Free()
/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/bt/stack/btm/
Dbtm_ble_privacy.c142 UINT8 bit; in btm_ble_clear_irk_index() local
147 bit = index % 8; in btm_ble_clear_irk_index()
148 btm_cb.ble_ctr_cb.irk_list_mask[byte] &= (~(1 << bit)); in btm_ble_clear_irk_index()
165 UINT8 bit; in btm_ble_find_irk_index() local
170 bit = i % 8; in btm_ble_find_irk_index()
172 if ((btm_cb.ble_ctr_cb.irk_list_mask[byte] & (1 << bit)) == 0) in btm_ble_find_irk_index()
174 btm_cb.ble_ctr_cb.irk_list_mask[byte] |= (1 << bit); in btm_ble_find_irk_index()
/system/tpm/attestation/common/
Dattestation_ca.proto29 // Data encryption: 256-bit key, AES-CBC with PKCS5 padding.
109 // Data encryption: 256-bit key, AES-CBC with PKCS5 padding.
119 // Data encryption: 256-bit key, AES-CBC with PKCS5 padding.
141 // A 256-bit random value generated by the server.
157 // A 256-bit random value generated by the client. Mixing in this nonce
163 // Data encryption: 256-bit key, AES-CBC with PKCS5 padding.
/system/extras/ext4_utils/
Dext4_utils.c106 int bitmap_get_bit(u8 *bitmap, u32 bit) in bitmap_get_bit() argument
108 if (bitmap[bit / 8] & (1 << (bit % 8))) in bitmap_get_bit()
114 void bitmap_clear_bit(u8 *bitmap, u32 bit) in bitmap_clear_bit() argument
116 bitmap[bit / 8] &= ~(1 << (bit % 8)); in bitmap_clear_bit()
Dext4_utils.h136 int bitmap_get_bit(u8 *bitmap, u32 bit);
137 void bitmap_clear_bit(u8 *bitmap, u32 bit);
Dallocate.c181 static int bitmap_set_bit(u8 *bitmap, u32 bit) in bitmap_set_bit() argument
183 if (bitmap[bit / 8] & 1 << (bit % 8)) in bitmap_set_bit()
186 bitmap[bit / 8] |= 1 << (bit % 8); in bitmap_set_bit()
190 static int bitmap_set_8_bits(u8 *bitmap, u32 bit) in bitmap_set_8_bits() argument
192 int ret = bitmap[bit / 8]; in bitmap_set_8_bits()
193 bitmap[bit / 8] = 0xFF; in bitmap_set_8_bits()
/system/gatekeeper/
DAndroid.mk35 LOCAL_CLANG_CFLAGS += -fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp
/system/core/libmincrypt/
Dp256.c58 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/ca-certificates/google/files/
D0d69c7e1.027 Public-Key: (256 bit)
Dccc52f49.026 Public-Key: (384 bit)
/system/ca-certificates/files/
D0d69c7e1.027 Public-Key: (256 bit)
Dccc52f49.026 Public-Key: (384 bit)
D9479c8c3.030 Public-Key: (384 bit)
Dd5727d6a.027 Public-Key: (384 bit)

12345678910