/external/jemalloc_new/test/unit/ |
D | bitmap.c | 96 test_bitmap_initializer_body(const bitmap_info_t *binfo, size_t nbits) { in test_bitmap_initializer_body() argument 98 bitmap_info_init(&binfo_dyn, nbits); in test_bitmap_initializer_body() 102 "nbits=%zu", nbits); in test_bitmap_initializer_body() 103 assert_zu_eq(binfo->nbits, binfo_dyn.nbits, in test_bitmap_initializer_body() 105 "nbits=%zu", nbits); in test_bitmap_initializer_body() 109 "nbits=%zu", nbits); in test_bitmap_initializer_body() 117 "initialization, nbits=%zu, level=%u", nbits, i); in test_bitmap_initializer_body() 127 #define NB(nbits) { \ in TEST_BEGIN() argument 128 if (nbits <= BITMAP_MAXBITS) { \ in TEST_BEGIN() 130 BITMAP_INFO_INITIALIZER(nbits); \ in TEST_BEGIN() [all …]
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | bitmap.h | 36 #define BITMAP_BITS2GROUPS(nbits) \ argument 37 (((nbits) + BITMAP_GROUP_NBITS_MASK) >> LG_BITMAP_GROUP_NBITS) 42 #define BITMAP_GROUPS_L0(nbits) \ argument 43 BITMAP_BITS2GROUPS(nbits) 44 #define BITMAP_GROUPS_L1(nbits) \ argument 45 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(nbits)) 46 #define BITMAP_GROUPS_L2(nbits) \ argument 47 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS((nbits)))) 48 #define BITMAP_GROUPS_L3(nbits) \ argument 50 BITMAP_BITS2GROUPS((nbits))))) [all …]
|
/external/fec/ |
D | fec.h | 20 int chainback_viterbi27(void *vp, unsigned char *data,unsigned int nbits,unsigned int endstate); 27 int chainback_viterbi27_av(void *p,unsigned char *data,unsigned int nbits,unsigned int endstate); 29 int update_viterbi27_blk_av(void *p,unsigned char *syms,int nbits); 36 int chainback_viterbi27_mmx(void *p,unsigned char *data,unsigned int nbits,unsigned int endstate); 38 int update_viterbi27_blk_mmx(void *p,unsigned char *syms,int nbits); 43 int chainback_viterbi27_sse(void *p,unsigned char *data,unsigned int nbits,unsigned int endstate); 45 int update_viterbi27_blk_sse(void *p,unsigned char *syms,int nbits); 50 int chainback_viterbi27_sse2(void *p,unsigned char *data,unsigned int nbits,unsigned int endstate); 52 int update_viterbi27_blk_sse2(void *p,unsigned char *syms,int nbits); 58 int chainback_viterbi27_port(void *p,unsigned char *data,unsigned int nbits,unsigned int endstate); [all …]
|
D | viterbi39.c | 83 unsigned int nbits, /* Number of data bits */ in chainback_viterbi39() argument 89 return chainback_viterbi39_port(p,data,nbits,endstate); in chainback_viterbi39() 92 return chainback_viterbi39_av(p,data,nbits,endstate); in chainback_viterbi39() 96 return chainback_viterbi39_mmx(p,data,nbits,endstate); in chainback_viterbi39() 98 return chainback_viterbi39_sse(p,data,nbits,endstate); in chainback_viterbi39() 100 return chainback_viterbi39_sse2(p,data,nbits,endstate); in chainback_viterbi39() 135 int update_viterbi39_blk(void *p,unsigned char syms[],int nbits){ in update_viterbi39_blk() argument 139 return update_viterbi39_blk_port(p,syms,nbits); in update_viterbi39_blk() 142 return update_viterbi39_blk_av(p,syms,nbits); in update_viterbi39_blk() 146 return update_viterbi39_blk_mmx(p,syms,nbits); in update_viterbi39_blk() [all …]
|
D | viterbi615.c | 84 unsigned int nbits, /* Number of data bits */ in chainback_viterbi615() argument 90 return chainback_viterbi615_port(p,data,nbits,endstate); in chainback_viterbi615() 93 return chainback_viterbi615_av(p,data,nbits,endstate); in chainback_viterbi615() 97 return chainback_viterbi615_mmx(p,data,nbits,endstate); in chainback_viterbi615() 99 return chainback_viterbi615_sse(p,data,nbits,endstate); in chainback_viterbi615() 101 return chainback_viterbi615_sse2(p,data,nbits,endstate); in chainback_viterbi615() 136 int update_viterbi615_blk(void *p,unsigned char syms[],int nbits){ in update_viterbi615_blk() argument 140 return update_viterbi615_blk_port(p,syms,nbits); in update_viterbi615_blk() 143 return update_viterbi615_blk_av(p,syms,nbits); in update_viterbi615_blk() 147 return update_viterbi615_blk_mmx(p,syms,nbits); in update_viterbi615_blk() [all …]
|
D | viterbi27.c | 82 unsigned int nbits, /* Number of data bits */ in chainback_viterbi27() argument 88 return chainback_viterbi27_port(p,data,nbits,endstate); in chainback_viterbi27() 91 return chainback_viterbi27_av(p,data,nbits,endstate); in chainback_viterbi27() 95 return chainback_viterbi27_mmx(p,data,nbits,endstate); in chainback_viterbi27() 97 return chainback_viterbi27_sse(p,data,nbits,endstate); in chainback_viterbi27() 99 return chainback_viterbi27_sse2(p,data,nbits,endstate); in chainback_viterbi27() 134 int update_viterbi27_blk(void *p,unsigned char syms[],int nbits){ in update_viterbi27_blk() argument 141 update_viterbi27_blk_port(p,syms,nbits); in update_viterbi27_blk() 145 update_viterbi27_blk_av(p,syms,nbits); in update_viterbi27_blk() 150 update_viterbi27_blk_mmx(p,syms,nbits); in update_viterbi27_blk() [all …]
|
D | viterbi29.c | 82 unsigned int nbits, /* Number of data bits */ in chainback_viterbi29() argument 88 return chainback_viterbi29_port(p,data,nbits,endstate); in chainback_viterbi29() 91 return chainback_viterbi29_av(p,data,nbits,endstate); in chainback_viterbi29() 95 return chainback_viterbi29_mmx(p,data,nbits,endstate); in chainback_viterbi29() 97 return chainback_viterbi29_sse(p,data,nbits,endstate); in chainback_viterbi29() 99 return chainback_viterbi29_sse2(p,data,nbits,endstate); in chainback_viterbi29() 134 int update_viterbi29_blk(void *p,unsigned char syms[],int nbits){ in update_viterbi29_blk() argument 138 return update_viterbi29_blk_port(p,syms,nbits); in update_viterbi29_blk() 141 return update_viterbi29_blk_av(p,syms,nbits); in update_viterbi29_blk() 145 return update_viterbi29_blk_mmx(p,syms,nbits); in update_viterbi29_blk() [all …]
|
/external/libldac/src/ |
D | bitalloc_sub_ldac.c | 25 int nbits; in encode_band_info_ldac() local 27 nbits = LDAC_NBANDBITS + LDAC_FLAGBITS; in encode_band_info_ldac() 29 return nbits; in encode_band_info_ldac() 38 int nbits; in encode_gradient_ldac() local 41 nbits = LDAC_GRADMODEBITS + LDAC_GRADQU0BITS*2 + LDAC_GRADOSBITS*2 + LDAC_NADJQUBITS; in encode_gradient_ldac() 44 nbits = LDAC_GRADMODEBITS + LDAC_GRADQU1BITS + LDAC_GRADOSBITS + LDAC_NADJQUBITS; in encode_gradient_ldac() 47 return nbits; in encode_gradient_ldac() 58 int id, nbits; in get_minimum_id_ldac() local 61 nbits = p_nbits[0]; in get_minimum_id_ldac() 64 if (nbits > p_nbits[i]) { in get_minimum_id_ldac() [all …]
|
/external/jemalloc/include/jemalloc/internal/ |
D | bitmap.h | 28 #define BITMAP_BITS2GROUPS(nbits) \ argument 29 ((nbits + BITMAP_GROUP_NBITS_MASK) >> LG_BITMAP_GROUP_NBITS) 34 #define BITMAP_GROUPS_L0(nbits) \ argument 35 BITMAP_BITS2GROUPS(nbits) 36 #define BITMAP_GROUPS_L1(nbits) \ argument 37 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(nbits)) 38 #define BITMAP_GROUPS_L2(nbits) \ argument 39 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS((nbits)))) 40 #define BITMAP_GROUPS_L3(nbits) \ argument 42 BITMAP_BITS2GROUPS((nbits))))) [all …]
|
/external/puffin/src/ |
D | bit_reader.cc | 11 bool BufferBitReader::CacheBits(size_t nbits) { in CacheBits() argument 12 if ((in_size_ - index_) * 8 + in_cache_bits_ < nbits) { in CacheBits() 15 if (nbits > sizeof(in_cache_) * 8) { in CacheBits() 18 while (in_cache_bits_ < nbits) { in CacheBits() 25 uint32_t BufferBitReader::ReadBits(size_t nbits) { in ReadBits() argument 26 return in_cache_ & ((1U << nbits) - 1); in ReadBits() 29 void BufferBitReader::DropBits(size_t nbits) { in DropBits() argument 30 in_cache_ >>= nbits; in DropBits() 31 in_cache_bits_ -= nbits; in DropBits() 39 size_t nbits = in_cache_bits_ & 7; in SkipBoundaryBits() local [all …]
|
D | huffman_table.h | 80 inline bool CodeAlphabet(uint32_t bits, uint16_t* alphabet, size_t* nbits) { in CodeAlphabet() argument 84 *nbits = code_lens_[*alphabet]; in CodeAlphabet() 95 inline bool LitLenAlphabet(uint32_t bits, uint16_t* alphabet, size_t* nbits) { in LitLenAlphabet() argument 99 *nbits = lit_len_lens_[*alphabet]; in LitLenAlphabet() 112 size_t* nbits) { in DistanceAlphabet() argument 116 *nbits = distance_lens_[*alphabet]; in DistanceAlphabet() 126 inline bool CodeHuffman(uint16_t alphabet, uint16_t* huffman, size_t* nbits) { in CodeHuffman() argument 129 *nbits = code_lens_[alphabet]; in CodeHuffman() 141 size_t* nbits) { in LitLenHuffman() argument 144 *nbits = lit_len_lens_[alphabet]; in LitLenHuffman() [all …]
|
D | huffer.cc | 97 size_t nbits; in HuffDeflate() local 99 cur_ht->LitLenHuffman(literal, &literal_huffman, &nbits)); in HuffDeflate() 100 TEST_AND_RETURN_FALSE(bw->WriteBits(nbits, literal_huffman)); in HuffDeflate() 132 size_t nbits; in HuffDeflate() local 134 cur_ht->LitLenHuffman(index + 257, &length_huffman, &nbits)); in HuffDeflate() 136 TEST_AND_RETURN_FALSE(bw->WriteBits(nbits, length_huffman)); in HuffDeflate() 154 cur_ht->DistanceHuffman(index, &distance_huffman, &nbits)); in HuffDeflate() 156 TEST_AND_RETURN_FALSE(bw->WriteBits(nbits, distance_huffman)); in HuffDeflate() 166 size_t nbits; in HuffDeflate() local 168 cur_ht->LitLenHuffman(256, &eos_huffman, &nbits)); in HuffDeflate() [all …]
|
D | bit_writer.cc | 13 bool BufferBitWriter::WriteBits(size_t nbits, uint32_t bits) { in WriteBits() argument 14 TEST_AND_RETURN_FALSE(((out_size_ - index_) * 8) - out_holder_bits_ >= nbits); in WriteBits() 15 TEST_AND_RETURN_FALSE(nbits <= sizeof(bits) * 8); in WriteBits() 16 while (nbits > 0) { in WriteBits() 22 while (out_holder_bits_ < 24 && nbits > 0) { in WriteBits() 24 auto min = std::min(nbits, static_cast<size_t>(8)); in WriteBits() 27 nbits -= min; in WriteBits()
|
/external/jemalloc/src/ |
D | bitmap.c | 9 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) in bitmap_info_init() argument 14 assert(nbits > 0); in bitmap_info_init() 15 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS)); in bitmap_info_init() 23 group_count = BITMAP_BITS2GROUPS(nbits); in bitmap_info_init() 34 binfo->nbits = nbits; in bitmap_info_init() 58 extra = (BITMAP_GROUP_NBITS - (binfo->nbits & BITMAP_GROUP_NBITS_MASK)) in bitmap_init() 75 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) in bitmap_info_init() argument 78 assert(nbits > 0); in bitmap_info_init() 79 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS)); in bitmap_info_init() 81 binfo->ngroups = BITMAP_BITS2GROUPS(nbits); in bitmap_info_init() [all …]
|
/external/jemalloc_new/src/ |
D | bitmap.c | 12 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) { in bitmap_info_init() argument 16 assert(nbits > 0); in bitmap_info_init() 17 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS)); in bitmap_info_init() 25 group_count = BITMAP_BITS2GROUPS(nbits); in bitmap_info_init() 36 binfo->nbits = nbits; in bitmap_info_init() 67 extra = (BITMAP_GROUP_NBITS - (binfo->nbits & BITMAP_GROUP_NBITS_MASK)) in bitmap_init() 86 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) { in bitmap_info_init() argument 87 assert(nbits > 0); in bitmap_info_init() 88 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS)); in bitmap_info_init() 90 binfo->ngroups = BITMAP_BITS2GROUPS(nbits); in bitmap_info_init() [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
D | Huffman.java | 96 int nbits = CODE_LENGTHS[b]; in encode() local 98 current <<= nbits; in encode() local 100 n += nbits; in encode() 130 int nbits = 0; in decode() local 134 nbits += 8; in decode() 135 while (nbits >= 8) { in decode() 136 int c = (current >>> (nbits - 8)) & 0xFF; in decode() 141 nbits -= node.terminalBits; in decode() 145 nbits -= 8; in decode() 150 while (nbits > 0) { in decode() [all …]
|
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/framed/ |
D | Huffman.java | 100 int nbits = CODE_LENGTHS[b]; in encode() local 102 current <<= nbits; in encode() local 104 n += nbits; in encode() 134 int nbits = 0; in decode() local 138 nbits += 8; in decode() 139 while (nbits >= 8) { in decode() 140 int c = (current >>> (nbits - 8)) & 0xFF; in decode() 145 nbits -= node.terminalBits; in decode() 149 nbits -= 8; in decode() 154 while (nbits > 0) { in decode() [all …]
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/ |
D | Huffman.java | 97 int nbits = CODE_LENGTHS[b]; in encode() local 99 current <<= nbits; in encode() local 101 n += nbits; in encode() 131 int nbits = 0; in decode() local 135 nbits += 8; in decode() 136 while (nbits >= 8) { in decode() 137 int c = (current >>> (nbits - 8)) & 0xFF; in decode() 142 nbits -= node.terminalBits; in decode() 146 nbits -= 8; in decode() 151 while (nbits > 0) { in decode() [all …]
|
/external/libjpeg-turbo/ |
D | jdhuff.h | 151 #define CHECK_BIT_BUFFER(state, nbits, action) { \ argument 152 if (bits_left < (nbits)) { \ 153 if (!jpeg_fill_bit_buffer(&(state), get_buffer, bits_left, nbits)) \ 159 #define GET_BITS(nbits) \ argument 160 (((int)(get_buffer >> (bits_left -= (nbits)))) & ((1 << (nbits)) - 1)) 162 #define PEEK_BITS(nbits) \ argument 163 (((int)(get_buffer >> (bits_left - (nbits)))) & ((1 << (nbits)) - 1)) 165 #define DROP_BITS(nbits) \ argument 166 (bits_left -= (nbits)) 171 register int bits_left, int nbits);
|
/external/python/rsa/rsa/ |
D | randnum.py | 27 def read_random_bits(nbits): argument 34 nbytes, rbits = divmod(nbits, 8) 48 def read_random_int(nbits): argument 52 randomdata = read_random_bits(nbits) 57 value |= 1 << (nbits - 1) 62 def read_random_odd_int(nbits): argument 69 value = read_random_int(nbits)
|
/external/pdfium/third_party/libtiff/ |
D | tif_lzw.c | 94 unsigned short nbits; /* # of bits/code */ member 103 #define lzw_nbits base.nbits 177 if ((_sp)->dec_bitsleft < (uint64)nbits) { \ 184 (_sp)->dec_bitsleft -= nbits; \ 343 if (nextbits < nbits) { \ 347 code = (hcode_t)((nextdata >> (nextbits-nbits)) & nbitsmask); \ 348 nextbits -= nbits; \ 370 long nbits, nextbits, nbitsmask; in LZWDecode() local 431 nbits = sp->lzw_nbits; in LZWDecode() 448 nbits = BITS_MIN; in LZWDecode() [all …]
|
/external/pdfium/core/fxcrt/ |
D | fx_extension_unittest.cpp | 10 uint32_t ReferenceGetBits32(const uint8_t* pData, int bitpos, int nbits) { in ReferenceGetBits32() argument 12 for (int i = 0; i < nbits; i++) { in ReferenceGetBits32() 14 result |= 1 << (nbits - i - 1); in ReferenceGetBits32() 108 for (int nbits = 1; nbits <= 32; ++nbits) { in TEST() local 109 for (int bitpos = 0; bitpos < (int)sizeof(data) * 8 - nbits; ++bitpos) { in TEST() 110 EXPECT_EQ(ReferenceGetBits32(data, bitpos, nbits), in TEST() 111 GetBits32(data, bitpos, nbits)); in TEST()
|
D | fx_extension.cpp | 125 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits) { in GetBits32() argument 126 ASSERT(0 < nbits && nbits <= 32); in GetBits32() 132 if (nbits < 8 && nbits + bitCount <= 8) { in GetBits32() 133 bitShift = 8 - nbits - bitCount; in GetBits32() 134 bitMask = (1 << nbits) - 1; in GetBits32() 139 bitMask = (1 << std::min(bitOffset, nbits)) - 1; in GetBits32() 140 dstShift = nbits - bitOffset; in GetBits32()
|
/external/u-boot/include/usb/ |
D | lin_gadget_compat.h | 19 #define small_const_nbits(nbits) \ argument 20 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG) 22 static inline void bitmap_zero(unsigned long *dst, int nbits) in bitmap_zero() argument 24 if (small_const_nbits(nbits)) in bitmap_zero() 27 int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_zero()
|
/external/openssh/ |
D | kexgexs.c | 75 u_int min = 0, max = 0, nbits = 0; in input_kex_dh_gex_request() local 79 (r = sshpkt_get_u32(ssh, &nbits)) != 0 || in input_kex_dh_gex_request() 83 kex->nbits = nbits; in input_kex_dh_gex_request() 88 nbits = MAXIMUM(DH_GRP_MIN, nbits); in input_kex_dh_gex_request() 89 nbits = MINIMUM(DH_GRP_MAX, nbits); in input_kex_dh_gex_request() 91 if (kex->max < kex->min || kex->nbits < kex->min || in input_kex_dh_gex_request() 92 kex->max < kex->nbits || kex->max < DH_GRP_MIN) { in input_kex_dh_gex_request() 98 kex->dh = PRIVSEP(choose_dh(min, nbits, max)); in input_kex_dh_gex_request() 203 kex->min, kex->nbits, kex->max, in input_kex_dh_gex_init()
|