/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 | 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 …]
|
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 …]
|
/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/bison/src/ |
D | Sbitset.c | 26 Sbitset__new (Sbitset__Index nbits) in Sbitset__new() argument 29 aver (nbits); in Sbitset__new() 30 return xcalloc (1, Sbitset__nbytes (nbits)); in Sbitset__new() 34 Sbitset__new_on_obstack (Sbitset__Index nbits, struct obstack *obstackp) in Sbitset__new_on_obstack() argument 39 aver (nbits); in Sbitset__new_on_obstack() 40 result = obstack_alloc (obstackp, Sbitset__nbytes (nbits)); in Sbitset__new_on_obstack() 41 for (ptr = result, end = result + Sbitset__nbytes (nbits); ptr < end; ++ptr) in Sbitset__new_on_obstack() 53 Sbitset__isEmpty (Sbitset self, Sbitset__Index nbits) in Sbitset__isEmpty() argument 55 Sbitset last = self + Sbitset__nbytes (nbits) - 1; in Sbitset__isEmpty() 59 return ((*last) & Sbitset__last_byte_mask (nbits)) == 0; in Sbitset__isEmpty() [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/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/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/pdfium/third_party/libjpeg/ |
D | jdhuff.h | 138 #define CHECK_BIT_BUFFER(state,nbits,action) \ argument 139 { if (bits_left < (nbits)) { \ 140 if (! jpeg_fill_bit_buffer(&(state),get_buffer,bits_left,nbits)) \ 144 #define GET_BITS(nbits) \ argument 145 (((int) (get_buffer >> (bits_left -= (nbits)))) & ((1<<(nbits))-1)) 147 #define PEEK_BITS(nbits) \ argument 148 (((int) (get_buffer >> (bits_left - (nbits)))) & ((1<<(nbits))-1)) 150 #define DROP_BITS(nbits) \ argument 151 (bits_left -= (nbits)) 156 register int bits_left, int nbits));
|
D | fpdfapi_jcphuff.c | 298 unsigned int nbits) in emit_buffered_bits() argument 303 while (nbits > 0) { in emit_buffered_bits() 306 nbits--; in emit_buffered_bits() 318 register int temp, nbits; in emit_eobrun() local 322 nbits = 0; in emit_eobrun() 324 nbits++; in emit_eobrun() 326 if (nbits > 14) in emit_eobrun() 329 emit_symbol(entropy, entropy->ac_tbl_no, nbits << 4); in emit_eobrun() 330 if (nbits) in emit_eobrun() 331 emit_bits(entropy, entropy->EOBRUN, nbits); in emit_eobrun() [all …]
|
D | fpdfapi_jchuff.c | 356 register int nbits; in encode_one_block() local 371 nbits = 0; in encode_one_block() 373 nbits++; in encode_one_block() 379 if (nbits > MAX_COEF_BITS+1) in encode_one_block() 383 if (! emit_bits(state, dctbl->ehufco[nbits], dctbl->ehufsi[nbits])) in encode_one_block() 388 if (nbits) /* emit_bits rejects calls with size 0 */ in encode_one_block() 389 if (! emit_bits(state, (unsigned int) temp2, nbits)) in encode_one_block() 415 nbits = 1; /* there must be at least one 1 bit */ in encode_one_block() 417 nbits++; in encode_one_block() 419 if (nbits > MAX_COEF_BITS) in encode_one_block() [all …]
|
/external/pdfium/core/fxcrt/ |
D | fx_basic_util_unittest.cpp | 13 uint32_t ReferenceGetBits32(const uint8_t* pData, int bitpos, int nbits) { in ReferenceGetBits32() argument 15 for (int i = 0; i < nbits; i++) { in ReferenceGetBits32() 17 result |= 1 << (nbits - i - 1); in ReferenceGetBits32() 26 for (int nbits = 1; nbits <= 32; ++nbits) { in TEST() local 27 for (int bitpos = 0; bitpos < (int)sizeof(data) * 8 - nbits; ++bitpos) { in TEST() 28 EXPECT_EQ(ReferenceGetBits32(data, bitpos, nbits), in TEST() 29 GetBits32(data, bitpos, nbits)); in TEST()
|
/external/libjpeg-turbo/ |
D | jdhuff.h | 152 #define CHECK_BIT_BUFFER(state,nbits,action) \ argument 153 { if (bits_left < (nbits)) { \ 154 if (! jpeg_fill_bit_buffer(&(state),get_buffer,bits_left,nbits)) \ 158 #define GET_BITS(nbits) \ argument 159 (((int) (get_buffer >> (bits_left -= (nbits)))) & ((1<<(nbits))-1)) 161 #define PEEK_BITS(nbits) \ argument 162 (((int) (get_buffer >> (bits_left - (nbits)))) & ((1<<(nbits))-1)) 164 #define DROP_BITS(nbits) \ argument 165 (bits_left -= (nbits)) 170 register int bits_left, int nbits);
|
D | jcphuff.c | 299 unsigned int nbits) in emit_buffered_bits() argument 304 while (nbits > 0) { in emit_buffered_bits() 307 nbits--; in emit_buffered_bits() 319 register int temp, nbits; in emit_eobrun() local 323 nbits = 0; in emit_eobrun() 325 nbits++; in emit_eobrun() 327 if (nbits > 14) in emit_eobrun() 330 emit_symbol(entropy, entropy->ac_tbl_no, nbits << 4); in emit_eobrun() 331 if (nbits) in emit_eobrun() 332 emit_bits(entropy, entropy->EOBRUN, nbits); in emit_eobrun() [all …]
|
/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 427 nbits = sp->lzw_nbits; in LZWDecode() 444 nbits = BITS_MIN; in LZWDecode() [all …]
|
/external/python/cpython2/Parser/ |
D | bitset.c | 8 newbitset(int nbits) in newbitset() argument 10 int nbytes = NBYTES(nbits); in newbitset() 49 samebitset(bitset ss1, bitset ss2, int nbits) in samebitset() argument 53 for (i = NBYTES(nbits); --i >= 0; ) in samebitset() 60 mergebitset(bitset ss1, bitset ss2, int nbits) in mergebitset() argument 64 for (i = NBYTES(nbits); --i >= 0; ) in mergebitset()
|
/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()
|
/external/brotli/enc/ |
D | command.h | 35 uint32_t nbits = Log2FloorNonZero(insertlen - 2) - 1u; in GetInsertLengthCode() local 36 return (uint16_t)((nbits << 1) + ((insertlen - 2) >> nbits) + 2); in GetInsertLengthCode() 52 uint32_t nbits = Log2FloorNonZero(copylen - 6) - 1u; in GetCopyLengthCode() local 53 return (uint16_t)((nbits << 1) + ((copylen - 6) >> nbits) + 4); in GetCopyLengthCode() 142 uint32_t nbits = self->dist_extra_ >> 24; in CommandRestoreDistanceCode() local 149 self->dist_prefix_ + 4u - BROTLI_NUM_DISTANCE_SHORT_CODES - 2u * nbits; in CommandRestoreDistanceCode() 152 return (prefix << nbits) + extra + BROTLI_NUM_DISTANCE_SHORT_CODES - 4u; in CommandRestoreDistanceCode()
|
D | compress_fragment.c | 190 const uint32_t nbits = Log2FloorNonZero(tail) - 1u; in EmitInsertLen() local 191 const size_t prefix = tail >> nbits; in EmitInsertLen() 192 const size_t inscode = (nbits << 1) + prefix + 42; in EmitInsertLen() 194 BrotliWriteBits(nbits, tail - (prefix << nbits), storage_ix, storage); in EmitInsertLen() 198 const uint32_t nbits = Log2FloorNonZero(tail); in EmitInsertLen() local 199 const size_t code = nbits + 50; in EmitInsertLen() 201 BrotliWriteBits(nbits, tail - ((size_t)1 << nbits), storage_ix, storage); in EmitInsertLen() 239 const uint32_t nbits = Log2FloorNonZero(tail) - 1u; in EmitCopyLen() local 240 const size_t prefix = tail >> nbits; in EmitCopyLen() 241 const size_t code = (nbits << 1) + prefix + 20; in EmitCopyLen() [all …]
|
D | compress_fragment_two_pass.c | 122 const uint32_t nbits = Log2FloorNonZero(tail) - 1u; in EmitInsertLen() local 123 const uint32_t prefix = tail >> nbits; in EmitInsertLen() 124 const uint32_t inscode = (nbits << 1) + prefix + 2; in EmitInsertLen() 125 const uint32_t extra = tail - (prefix << nbits); in EmitInsertLen() 129 const uint32_t nbits = Log2FloorNonZero(tail); in EmitInsertLen() local 130 const uint32_t code = nbits + 10; in EmitInsertLen() 131 const uint32_t extra = tail - (1u << nbits); in EmitInsertLen() 151 const size_t nbits = Log2FloorNonZero(tail) - 1; in EmitCopyLen() local 152 const size_t prefix = tail >> nbits; in EmitCopyLen() 153 const size_t code = (nbits << 1) + prefix + 44; in EmitCopyLen() [all …]
|
/external/syslinux/com32/libutil/ |
D | unbase64.c | 43 int nbits = 0; in unbase64() local 64 nbits += 6; in unbase64() 65 if (nbits >= 8) { in unbase64() 67 *buffer++ = (bits >> (nbits - 8)); in unbase64() 69 nbits -= 8; in unbase64()
|
/external/libopus/celt/ |
D | entcode.c | 73 opus_uint32 nbits; in ec_tell_frac() local 77 nbits=_this->nbits_total<<BITRES; in ec_tell_frac() 83 return nbits-l; in ec_tell_frac() 87 opus_uint32 nbits; in ec_tell_frac() local 103 nbits=_this->nbits_total<<BITRES; in ec_tell_frac() 113 return nbits-l; in ec_tell_frac()
|
/external/python/cpython2/Include/ |
D | bitset.h | 14 bitset newbitset(int nbits); 18 int samebitset(bitset bs1, bitset bs2, int nbits); 19 void mergebitset(bitset bs1, bitset bs2, int nbits); 22 #define NBYTES(nbits) (((nbits) + BITSPERBYTE - 1) / BITSPERBYTE) argument
|