/external/linux-tools-perf/src/tools/perf/util/include/linux/ |
D | bitmap.h | 11 #define BITMAP_LAST_WORD_MASK(nbits) \ argument 13 ((nbits) % BITS_PER_LONG) ? \ 14 (1UL<<((nbits) % BITS_PER_LONG))-1 : ~0UL \ 17 #define small_const_nbits(nbits) \ argument 18 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG) 20 static inline void bitmap_zero(unsigned long *dst, int nbits) in bitmap_zero() argument 22 if (small_const_nbits(nbits)) in bitmap_zero() 25 int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_zero() 30 static inline int bitmap_weight(const unsigned long *src, int nbits) in bitmap_weight() argument 32 if (small_const_nbits(nbits)) in bitmap_weight() [all …]
|
/external/jemalloc/include/jemalloc/internal/ |
D | bitmap.h | 19 #define BITMAP_BITS2GROUPS(nbits) \ argument 20 ((nbits + BITMAP_GROUP_NBITS_MASK) >> LG_BITMAP_GROUP_NBITS) 25 #define BITMAP_GROUPS_L0(nbits) \ argument 26 BITMAP_BITS2GROUPS(nbits) 27 #define BITMAP_GROUPS_L1(nbits) \ argument 28 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(nbits)) 29 #define BITMAP_GROUPS_L2(nbits) \ argument 30 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS((nbits)))) 31 #define BITMAP_GROUPS_L3(nbits) \ argument 33 BITMAP_BITS2GROUPS((nbits))))) [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 …]
|
D | Sbitset.h | 37 Sbitset Sbitset__new (Sbitset__Index nbits); 38 Sbitset Sbitset__new_on_obstack (Sbitset__Index nbits, 45 bool Sbitset__isEmpty (Sbitset self, Sbitset__Index nbits); 47 void Sbitset__fprint(Sbitset self, Sbitset__Index nbits, FILE *file);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
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/jpeg/ |
D | jdhuff.h | 139 #define CHECK_BIT_BUFFER(state,nbits,action) \ argument 140 { if (bits_left < (nbits)) { \ 141 if (! jpeg_fill_bit_buffer(&(state),get_buffer,bits_left,nbits)) \ 145 #define GET_BITS(nbits) \ argument 146 (((int) (get_buffer >> (bits_left -= (nbits)))) & ((1<<(nbits))-1)) 148 #define PEEK_BITS(nbits) \ argument 149 (((int) (get_buffer >> (bits_left - (nbits)))) & ((1<<(nbits))-1)) 151 #define DROP_BITS(nbits) \ argument 152 (bits_left -= (nbits)) 157 register int bits_left, int nbits));
|
D | 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 | jchuff.c | 357 register int nbits; in encode_one_block() local 372 nbits = 0; in encode_one_block() 374 nbits++; in encode_one_block() 380 if (nbits > MAX_COEF_BITS+1) in encode_one_block() 384 if (! emit_bits(state, dctbl->ehufco[nbits], dctbl->ehufsi[nbits])) in encode_one_block() 389 if (nbits) /* emit_bits rejects calls with size 0 */ in encode_one_block() 390 if (! emit_bits(state, (unsigned int) temp2, nbits)) in encode_one_block() 416 nbits = 1; /* there must be at least one 1 bit */ in encode_one_block() 418 nbits++; in encode_one_block() 420 if (nbits > MAX_COEF_BITS) in encode_one_block() [all …]
|
/external/pdfium/core/src/fxcodec/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 | 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 …]
|
D | fpdfapi_jchuff.c | 361 register int nbits; in encode_one_block() local 376 nbits = 0; in encode_one_block() 378 nbits++; in encode_one_block() 384 if (nbits > MAX_COEF_BITS+1) in encode_one_block() 388 if (! emit_bits(state, dctbl->ehufco[nbits], dctbl->ehufsi[nbits])) in encode_one_block() 393 if (nbits) /* emit_bits rejects calls with size 0 */ in encode_one_block() 394 if (! emit_bits(state, (unsigned int) temp2, nbits)) in encode_one_block() 420 nbits = 1; /* there must be at least one 1 bit */ in encode_one_block() 422 nbits++; in encode_one_block() 424 if (nbits > MAX_COEF_BITS) in encode_one_block() [all …]
|
/external/jemalloc/src/ |
D | bitmap.c | 7 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) in bitmap_info_init() argument 12 assert(nbits > 0); in bitmap_info_init() 13 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS)); in bitmap_info_init() 21 group_count = BITMAP_BITS2GROUPS(nbits); in bitmap_info_init() 32 binfo->nbits = nbits; in bitmap_info_init() 43 bitmap_size(size_t nbits) in bitmap_size() argument 47 bitmap_info_init(&binfo, nbits); in bitmap_size() 66 extra = (BITMAP_GROUP_NBITS - (binfo->nbits & BITMAP_GROUP_NBITS_MASK)) in bitmap_init()
|
/external/openssh/ |
D | kexgexs.c | 77 u_int min = 0, max = 0, nbits = 0; in input_kex_dh_gex_request() local 83 (r = sshpkt_get_u32(ssh, &nbits)) != 0 || in input_kex_dh_gex_request() 87 kex->nbits = nbits; in input_kex_dh_gex_request() 92 nbits = MAX(DH_GRP_MIN, nbits); in input_kex_dh_gex_request() 93 nbits = MIN(DH_GRP_MAX, nbits); in input_kex_dh_gex_request() 97 if ((r = sshpkt_get_u32(ssh, &nbits)) != 0 || in input_kex_dh_gex_request() 100 kex->nbits = nbits; in input_kex_dh_gex_request() 110 if (kex->max < kex->min || kex->nbits < kex->min || in input_kex_dh_gex_request() 111 kex->max < kex->nbits) { in input_kex_dh_gex_request() 117 kex->dh = PRIVSEP(choose_dh(min, nbits, max)); in input_kex_dh_gex_request() [all …]
|
D | kexgexc.c | 61 u_int nbits; in kexgex_client() local 63 nbits = dh_estimate(kex->dh_need * 8); in kexgex_client() 67 kex->nbits = nbits; in kexgex_client() 72 (r = sshpkt_put_u32(ssh, kex->nbits)) != 0 || in kexgex_client() 75 debug("SSH2_MSG_KEX_DH_GEX_REQUEST_OLD(%u) sent", kex->nbits); in kexgex_client() 80 (r = sshpkt_put_u32(ssh, kex->nbits)) != 0 || in kexgex_client() 85 kex->min, kex->nbits, kex->max); in kexgex_client() 89 kex->min, kex->nbits, kex->max); in kexgex_client() 237 kex->min, kex->nbits, kex->max, in input_kex_dh_gex_reply()
|
/external/libopus/celt/tests/ |
D | test_unit_entropy.c | 55 long nbits; in main() local 93 nbits=ec_tell(&enc); in main() 96 if(nbits2-nbits!=ftb){ in main() 98 nbits2-nbits,ftb); in main() 103 nbits=ec_tell_frac(&enc); in main() 107 entropy,ldexp(nbits,-3),100*(nbits-ldexp(entropy,3))/nbits); in main() 129 if(nbits!=nbits2){ in main() 132 ldexp(nbits2,-3),ldexp(nbits,-3)); in main()
|
/external/webrtc/src/common_audio/signal_processing/ |
D | get_scaling_square.c | 22 int nbits = WebRtcSpl_GetSizeInBits(times); in WebRtcSpl_GetScalingSquare() local 42 return (t > nbits) ? 0 : nbits - t; in WebRtcSpl_GetScalingSquare()
|
D | auto_correlation.c | 53 int nbits = WebRtcSpl_GetSizeInBits(in_vector_length); // # of bits in the sum loop in WebRtcSpl_AutoCorrelation() local 56 if (t > nbits) in WebRtcSpl_AutoCorrelation() 61 scaling = nbits - t; in WebRtcSpl_AutoCorrelation()
|
/external/boringssl/src/crypto/modes/ |
D | cfb.c | 158 static void cfbr_encrypt_block(const uint8_t *in, uint8_t *out, unsigned nbits, in cfbr_encrypt_block() argument 165 if (nbits <= 0 || nbits > 128) { in cfbr_encrypt_block() 173 num = (nbits + 7) / 8; in cfbr_encrypt_block() 186 rem = nbits % 8; in cfbr_encrypt_block() 187 num = nbits / 8; in cfbr_encrypt_block()
|
/external/libopus/celt/ |
D | entcode.c | 66 opus_uint32 nbits; in ec_tell_frac() local 82 nbits=_this->nbits_total<<BITRES; in ec_tell_frac() 92 return nbits-l; in ec_tell_frac()
|
/external/aac/libAACdec/src/ |
D | channelinfo.cpp | 104 int nbits; in IcsReadMaxSfb() local 107 nbits = 6; in IcsReadMaxSfb() 110 nbits = 4; in IcsReadMaxSfb() 113 pIcsInfo->MaxSfBands = (UCHAR) FDKreadBits(bs, nbits); in IcsReadMaxSfb()
|
/external/libvncserver/libvncserver/ |
D | zrleencodetemplate.c | 267 zrle_U8 nbits = 0; in ZRLE_ENCODE_TILE() local 276 nbits += bppp; in ZRLE_ENCODE_TILE() 277 if (nbits >= 8) { in ZRLE_ENCODE_TILE() 279 nbits = 0; in ZRLE_ENCODE_TILE() 282 if (nbits > 0) { in ZRLE_ENCODE_TILE() 283 byte <<= 8 - nbits; in ZRLE_ENCODE_TILE()
|
/external/aac/libMpegTPEnc/src/ |
D | tpenc_lib.cpp | 505 INT nbits = 0, nPceBits = 0; in transportEnc_GetStaticBits() local 516 nbits = 0; /* Do not consider the ADIF header into the total bitrate */ in transportEnc_GetStaticBits() 519 nbits = adtsWrite_GetHeaderBits(&hTp->writer.adts); in transportEnc_GetStaticBits() 524 nbits = transportEnc_LatmCountTotalBitDemandHeader( &hTp->writer.latm, auBits ); in transportEnc_GetStaticBits() 527 nbits = 0; in transportEnc_GetStaticBits() 532 nbits += nPceBits; in transportEnc_GetStaticBits() 534 return nbits; in transportEnc_GetStaticBits()
|
/external/skia/src/core/ |
D | SkMath.cpp | 64 int nbits = SkCLZ(numer) - 1; in SkDivBits() local 66 int bits = shift_bias - nbits + dbits; in SkDivBits() 76 numer <<= nbits; in SkDivBits()
|
/external/llvm/test/Transforms/LoopUnroll/ |
D | 2011-08-09-IVSimplify.ll | 20 define void @FlipBit(i32* nocapture %bitmap, i32 %bit_addr, i32 %nbits) nounwind { 25 %nbits.addr.02 = phi i32 [ 128, %entry ], [ %dec, %while.body ] 27 %dec = add i32 %nbits.addr.02, -1
|
/external/freetype/src/sfnt/ |
D | ttsbit.c | 707 FT_Int pitch, width, height, line_bits, h, nbits; in tt_sbit_decoder_load_bit_aligned() local 749 nbits = 0; in tt_sbit_decoder_load_bit_aligned() 765 nbits = x_pos; in tt_sbit_decoder_load_bit_aligned() 767 else if ( nbits < w ) in tt_sbit_decoder_load_bit_aligned() 771 nbits += 8 - w; in tt_sbit_decoder_load_bit_aligned() 776 nbits -= w; in tt_sbit_decoder_load_bit_aligned() 779 *pwrite++ |= ( ( rval >> nbits ) & 0xFF ) & in tt_sbit_decoder_load_bit_aligned() 790 *pwrite++ |= ( rval >> nbits ) & 0xFF; in tt_sbit_decoder_load_bit_aligned() 798 if ( nbits < w ) in tt_sbit_decoder_load_bit_aligned() 802 *pwrite |= ( ( rval >> nbits ) & 0xFF ) & ( 0xFF00U >> w ); in tt_sbit_decoder_load_bit_aligned() [all …]
|