/external/brotli/dec/ |
D | bit_reader.h | 162 BrotliBitReader* const br, uint32_t n_bits) { in BrotliFillBitWindow() argument 164 if (!BROTLI_ALIGNED_READ && IS_CONSTANT(n_bits) && (n_bits <= 8)) { in BrotliFillBitWindow() 172 } else if (!BROTLI_ALIGNED_READ && IS_CONSTANT(n_bits) && (n_bits <= 16)) { in BrotliFillBitWindow() 190 if (!BROTLI_ALIGNED_READ && IS_CONSTANT(n_bits) && (n_bits <= 8)) { in BrotliFillBitWindow() 249 BrotliBitReader* const br, uint32_t n_bits) { in BrotliGetBits() argument 250 BrotliFillBitWindow(br, n_bits); in BrotliGetBits() 251 return (uint32_t)BrotliGetBitsUnmasked(br) & BitMask(n_bits); in BrotliGetBits() 257 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) { in BrotliSafeGetBits() argument 258 while (BrotliGetAvailableBits(br) < n_bits) { in BrotliSafeGetBits() 263 *val = (uint32_t)BrotliGetBitsUnmasked(br) & BitMask(n_bits); in BrotliSafeGetBits() [all …]
|
/external/bison/lib/ |
D | bitset.c | 39 bitset_bytes (enum bitset_type type, bitset_bindex n_bits) in bitset_bytes() argument 52 bytes = abitset_bytes (n_bits); in bitset_bytes() 56 bytes = lbitset_bytes (n_bits); in bitset_bytes() 60 bytes = ebitset_bytes (n_bits); in bitset_bytes() 64 bytes = vbitset_bytes (n_bits); in bitset_bytes() 74 bitset_init (bitset bset, bitset_bindex n_bits, enum bitset_type type) in bitset_init() argument 77 return bitset_stats_init (bset, n_bits, type); in bitset_init() 85 return abitset_init (bset, n_bits); in bitset_init() 88 return lbitset_init (bset, n_bits); in bitset_init() 91 return ebitset_init (bset, n_bits); in bitset_init() [all …]
|
D | bitsetv.c | 29 bitsetv_alloc (bitset_bindex n_vecs, bitset_bindex n_bits, in bitsetv_alloc() argument 38 bytes = bitset_bytes (type, n_bits); in bitsetv_alloc() 53 bitset_init (bsetv[i], n_bits, type); in bitsetv_alloc() 65 bitsetv_create (bitset_bindex n_vecs, bitset_bindex n_bits, unsigned int attr) in bitsetv_create() argument 69 type = bitset_type_choose (n_bits, attr); in bitsetv_create() 70 return bitsetv_alloc (n_vecs, n_bits, type); in bitsetv_create()
|
D | ebitset.c | 123 ebitset_resize (bitset src, bitset_bindex n_bits) in ebitset_resize() argument 128 if (n_bits == BITSET_NBITS_ (src)) in ebitset_resize() 129 return n_bits; in ebitset_resize() 132 newsize = EBITSET_N_ELTS (n_bits); in ebitset_resize() 174 BITSET_NBITS_ (src) = n_bits; in ebitset_resize() 175 return n_bits; in ebitset_resize() 569 bitset_bindex n_bits; in ebitset_list_reverse() local 585 n_bits = size * EBITSET_ELT_BITS; in ebitset_list_reverse() 588 if (rbitno >= n_bits) in ebitset_list_reverse() 593 bitno = n_bits - (rbitno + 1); in ebitset_list_reverse() [all …]
|
D | vbitset.c | 56 vbitset_resize (bitset src, bitset_bindex n_bits) in vbitset_resize() argument 61 if (n_bits == BITSET_NBITS_ (src)) in vbitset_resize() 62 return n_bits; in vbitset_resize() 65 newsize = VBITSET_N_WORDS (n_bits); in vbitset_resize() 110 BITSET_NBITS_ (src) = n_bits; in vbitset_resize() 111 return n_bits; in vbitset_resize() 175 bitset_bindex n_bits = BITSET_SIZE_ (src); local 182 if (rbitno >= n_bits) 187 bitno = n_bits - (rbitno + 1); 205 *next = n_bits - (bitoff + bitcnt); [all …]
|
D | bitset_stats.c | 677 bitset_stats_init (bitset bset, bitset_bindex n_bits, enum bitset_type type) in bitset_stats_init() argument 689 BITSET_NBITS_ (bset) = n_bits; in bitset_stats_init() 699 bytes = abitset_bytes (n_bits); in bitset_stats_init() 701 abitset_init (sbset, n_bits); in bitset_stats_init() 705 bytes = lbitset_bytes (n_bits); in bitset_stats_init() 707 lbitset_init (sbset, n_bits); in bitset_stats_init() 711 bytes = ebitset_bytes (n_bits); in bitset_stats_init() 713 ebitset_init (sbset, n_bits); in bitset_stats_init() 717 bytes = vbitset_bytes (n_bits); in bitset_stats_init() 719 vbitset_init (sbset, n_bits); in bitset_stats_init()
|
D | abitset.c | 152 bitset_bindex n_bits = BITSET_SIZE_ (src); in abitset_list_reverse() local 159 if (rbitno >= n_bits) in abitset_list_reverse() 164 bitno = n_bits - (rbitno + 1); in abitset_list_reverse() 182 *next = n_bits - (bitoff + bitcnt); in abitset_list_reverse() 193 *next = n_bits - (bitoff + 1); in abitset_list_reverse() 785 abitset_bytes (bitset_bindex n_bits) in abitset_bytes() argument 793 size = ABITSET_N_WORDS (n_bits); in abitset_bytes() 809 abitset_init (bitset bset, bitset_bindex n_bits) in abitset_init() argument 813 size = ABITSET_N_WORDS (n_bits); in abitset_init() 814 BITSET_NBITS_ (bset) = n_bits; in abitset_init()
|
D | lbitset.c | 580 bitset_bindex n_bits; in lbitset_list_reverse() local 586 n_bits = (elt->index + LBITSET_ELT_WORDS) * BITSET_WORD_BITS; in lbitset_list_reverse() 589 if (rbitno >= n_bits) in lbitset_list_reverse() 592 bitno = n_bits - (rbitno + 1); in lbitset_list_reverse() 639 *next = n_bits - (boffset + bcount); in lbitset_list_reverse() 655 *next = n_bits - (boffset + 1); in lbitset_list_reverse() 887 bitset_bindex n_bits; in lbitset_unused_clear() local 889 n_bits = BITSET_SIZE_ (dst); in lbitset_unused_clear() 890 last_bit = n_bits % LBITSET_ELT_BITS; in lbitset_unused_clear() 900 windex = n_bits / BITSET_WORD_BITS; in lbitset_unused_clear() [all …]
|
D | bbitset.h | 93 bitset_bindex n_bits; /* Number of bits. */ member 110 #define BITSET_NBITS_(SRC) (SRC)->b.n_bits
|
/external/brotli/enc/ |
D | write_bits.h | 39 static BROTLI_INLINE void BrotliWriteBits(size_t n_bits, in BrotliWriteBits() argument 52 printf("WriteBits %2d 0x%016llx %10d\n", n_bits, bits, *pos); in BrotliWriteBits() 54 assert((bits >> n_bits) == 0); in BrotliWriteBits() 55 assert(n_bits <= 56); in BrotliWriteBits() 58 *pos += n_bits; in BrotliWriteBits() 66 for (bits_left_to_write = n_bits + bits_reserved_in_first_byte; in BrotliWriteBits() 73 *pos += n_bits; in BrotliWriteBits()
|
/external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/ |
D | LZWEncoder.java | 46 int n_bits; // number of bits/code field in LZWEncoder 159 n_bits = g_init_bits; in compress() 160 maxcode = MAXCODE(n_bits); in compress() 237 final int MAXCODE(int n_bits) { in MAXCODE() argument 238 return (1 << n_bits) - 1; in MAXCODE() 263 cur_bits += n_bits; in output() 275 maxcode = MAXCODE(n_bits = g_init_bits); in output() 278 ++n_bits; in output() 279 if (n_bits == maxbits) in output() 282 maxcode = MAXCODE(n_bits); in output()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 30 size_t n_bits; member 36 size_t n_bits) in tlpm_add() argument 43 n = (n_bits + 7) / 8; in tlpm_add() 48 node->n_bits = n_bits; in tlpm_add() 68 size_t n_bits) in tlpm_match() argument 80 for (i = 0; i < n_bits && i < list->n_bits; ++i) { in tlpm_match() 86 if (i >= list->n_bits) { in tlpm_match() 87 if (!best || i > best->n_bits) in tlpm_match() 138 l2 = tlpm_add(l2, t1->key, t1->n_bits); in test_lpm_order() 148 assert(t1->n_bits == t2->n_bits); in test_lpm_order() [all …]
|
/external/boringssl/src/crypto/fipsmodule/bn/ |
D | montgomery_inv.c | 172 unsigned n_bits = BN_num_bits(n); in bn_mod_exp_base_2_vartime() local 173 assert(n_bits != 0); in bn_mod_exp_base_2_vartime() 174 if (n_bits == 1) { in bn_mod_exp_base_2_vartime() 179 assert(p > n_bits); in bn_mod_exp_base_2_vartime() 180 if (!BN_set_bit(r, n_bits)) { in bn_mod_exp_base_2_vartime() 191 for (unsigned i = n_bits; i < p; ++i) { in bn_mod_exp_base_2_vartime()
|
/external/webp/src/utils/ |
D | bit_writer_utils.h | 118 void VP8LPutBitsInternal(VP8LBitWriter* const bw, uint32_t bits, int n_bits); 126 uint32_t bits, int n_bits) { in VP8LPutBits() argument 128 if (n_bits > 0) { in VP8LPutBits() 133 bw->used_ += n_bits; in VP8LPutBits() 136 VP8LPutBitsInternal(bw, bits, n_bits); in VP8LPutBits()
|
D | bit_reader_utils.c | 207 uint32_t VP8LReadBits(VP8LBitReader* const br, int n_bits) { in VP8LReadBits() argument 208 assert(n_bits >= 0); in VP8LReadBits() 210 if (!br->eos_ && n_bits <= VP8L_MAX_NUM_BIT_READ) { in VP8LReadBits() 211 const uint32_t val = VP8LPrefetchBits(br) & kBitMask[n_bits]; in VP8LReadBits() 212 const int new_bits = br->bit_pos_ + n_bits; in VP8LReadBits()
|
D | bit_writer_utils.c | 266 void VP8LPutBitsInternal(VP8LBitWriter* const bw, uint32_t bits, int n_bits) { in VP8LPutBitsInternal() argument 267 assert(n_bits <= 32); in VP8LPutBitsInternal() 270 if (n_bits > 0) { in VP8LPutBitsInternal() 275 if (used + n_bits >= VP8L_WRITER_MAX_BITS) { in VP8LPutBitsInternal() 280 n_bits -= shift; in VP8LPutBitsInternal() 282 assert(n_bits <= VP8L_WRITER_MAX_BITS); in VP8LPutBitsInternal() 302 bw->used_ = used + n_bits; in VP8LPutBitsInternal()
|
D | bit_reader_utils.h | 142 uint32_t VP8LReadBits(VP8LBitReader* const br, int n_bits);
|
/external/mesa3d/src/mesa/main/ |
D | texcompress_bptc.c | 59 uint8_t n_bits; member 322 int n_bits) in extract_bits() argument 326 int n_bits_in_byte = MIN2(n_bits, 8 - bit_index); in extract_bits() 334 n_bits -= n_bits_in_byte; in extract_bits() 336 if (n_bits <= 0) in extract_bits() 342 n_bits_in_byte = MIN2(n_bits, 8); in extract_bits() 348 int n_bits) in expand_component() argument 353 return byte << (8 - n_bits) | (byte >> (2 * n_bits - 8)); in expand_component() 703 int n_bits) in sign_extend() argument 705 if ((value & (1 << (n_bits - 1)))) { in sign_extend() [all …]
|
/external/libjpeg-turbo/ |
D | wrgif.c | 56 int n_bits; /* current number of bits/code */ member 75 #define MAXCODE(n_bits) ((1 << (n_bits)) - 1) argument 113 dinfo->cur_bits += dinfo->n_bits; in output() 150 dinfo->n_bits = i_bits; in compress_init() 151 dinfo->maxcode = MAXCODE(dinfo->n_bits); in compress_init()
|
/external/v8/src/mips/ |
D | disasm-mips.cc | 89 void PrintPCImm16(Instruction* instr, int delta_pc, int n_bits); 96 void PrintPCImm21(Instruction* instr, int delta_pc, int n_bits); 99 void PrintPCImm26(Instruction* instr, int delta_pc, int n_bits); 297 void Decoder::PrintPCImm16(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm16() argument 302 delta_pc + (offset << n_bits))); in PrintPCImm16() 358 void Decoder::PrintPCImm21(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm21() argument 366 delta_pc + (imm21 << n_bits))); in PrintPCImm21() 392 void Decoder::PrintPCImm26(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm26() argument 400 delta_pc + (imm26 << n_bits))); in PrintPCImm26() 573 int n_bits = 0; in FormatOption() local [all …]
|
/external/v8/src/mips64/ |
D | disasm-mips64.cc | 89 void PrintPCImm16(Instruction* instr, int delta_pc, int n_bits); 96 void PrintPCImm21(Instruction* instr, int delta_pc, int n_bits); 99 void PrintPCImm26(Instruction* instr, int delta_pc, int n_bits); 300 void Decoder::PrintPCImm16(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm16() argument 305 delta_pc + (offset << n_bits))); in PrintPCImm16() 361 void Decoder::PrintPCImm21(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm21() argument 369 delta_pc + (imm21 << n_bits))); in PrintPCImm21() 396 void Decoder::PrintPCImm26(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm26() argument 404 delta_pc + (imm26 << n_bits))); in PrintPCImm26() 589 int n_bits = 0; in FormatOption() local [all …]
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_bitvector_test.cc | 119 uptr n_bits = ((uptr)my_rand() % bv.size()) + 1; in TestBitVector() local 121 EXPECT_TRUE(n_bits > 0 && n_bits <= bv.size()); in TestBitVector() 123 for (uptr i = 0; i < n_bits; i++) { in TestBitVector()
|
/external/harfbuzz_ng/src/ |
D | hb-private.hh | 327 unsigned int n_bits = 0; in _hb_bit_storage() 329 n_bits++; in _hb_bit_storage() 332 return n_bits; in _hb_bit_storage() 343 unsigned int n_bits = 0; in _hb_ctz() 346 n_bits++; in _hb_ctz() 349 return n_bits; in _hb_ctz()
|
/external/wpa_supplicant_8/src/utils/ |
D | radiotap_iter.h | 22 int n_bits; member
|
D | radiotap.c | 48 .n_bits = sizeof(rtap_namespace_sizes) / sizeof(rtap_namespace_sizes[0]), 268 iterator->_arg_index >= iterator->current_namespace->n_bits) { in ieee80211_radiotap_iterator_next()
|