Home
last modified time | relevance | path

Searched refs:nbits (Results 1 – 25 of 96) sorted by relevance

1234

/external/qemu/include/qemu/
Dbitmap.h58 #define BITMAP_LAST_WORD_MASK(nbits) \ argument
60 ((nbits) % BITS_PER_LONG) ? \
61 (1UL<<((nbits) % BITS_PER_LONG))-1 : ~0UL \
67 #define small_nbits(nbits) \ argument
68 ((nbits) <= BITS_PER_LONG)
91 static inline unsigned long *bitmap_new(int nbits) in bitmap_new() argument
93 int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_new()
97 static inline void bitmap_zero(unsigned long *dst, int nbits) in bitmap_zero() argument
99 if (small_nbits(nbits)) { in bitmap_zero()
102 int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_zero()
[all …]
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/include/linux/
Dbitmap.h11 #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/bison/src/
DSbitset.c26 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/src/
Dbitmap.c7 static size_t bits2groups(size_t nbits);
12 bits2groups(size_t nbits) in bits2groups() argument
15 return ((nbits >> LG_BITMAP_GROUP_NBITS) + in bits2groups()
16 !!(nbits & BITMAP_GROUP_NBITS_MASK)); in bits2groups()
20 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) in bitmap_info_init() argument
25 assert(nbits > 0); in bitmap_info_init()
26 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS)); in bitmap_info_init()
34 group_count = bits2groups(nbits); in bitmap_info_init()
44 binfo->nbits = nbits; in bitmap_info_init()
55 bitmap_size(size_t nbits) in bitmap_size() argument
[all …]
/external/qemu/distrib/jpeg-6b/
Djdhuff.h139 #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));
Djcphuff.c298 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 …]
Djchuff.c357 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/jpeg/
Djdhuff.h139 #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));
Djcphuff.c298 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 …]
Djchuff.c357 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/
Djdhuff.h138 #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));
Dfpdfapi_jcphuff.c299 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 …]
Dfpdfapi_jchuff.c361 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/chromium_org/third_party/brotli/src/brotli/enc/
Dprefix.cc28 int nbits; member
74 if (length >= range.offset && length < range.offset + (1 << range.nbits)) { in InsertLengthPrefix()
84 if (length >= range.offset && length < range.offset + (1 << range.nbits)) { in CopyLengthPrefix()
104 return kInsertLengthPrefixCode[insert_code].nbits; in InsertLengthExtraBits()
114 return kCopyLengthPrefixCode[copy_code].nbits; in CopyLengthExtraBits()
126 int* nbits, in PrefixEncodeCopyDistance() argument
131 *nbits = 0; in PrefixEncodeCopyDistance()
142 *nbits = bucket - postfix_bits; in PrefixEncodeCopyDistance()
144 ((2 * (*nbits - 1) + prefix) << postfix_bits) + postfix; in PrefixEncodeCopyDistance()
151 if (length >= range.offset && length < range.offset + (1 << range.nbits)) { in BlockLengthPrefix()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
DHuffman.java58 int nbits = lengths[b]; in encode() local
60 current <<= nbits; in encode() local
62 n += nbits; in encode()
97 int nbits = 0; in decode() local
101 nbits += 8; in decode()
102 while (nbits >= 8) { in decode()
103 int c = (current >>> (nbits - 8)) & 0xFF; in decode()
108 nbits -= node.terminalBits; in decode()
112 nbits -= 8; in decode()
117 while (nbits > 0) { in decode()
[all …]
/external/chromium_org/third_party/libjpeg_turbo/
Djdhuff.h153 #define CHECK_BIT_BUFFER(state,nbits,action) \ argument
154 { if (bits_left < (nbits)) { \
155 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));
Djcphuff.c296 unsigned int nbits) in emit_buffered_bits() argument
301 while (nbits > 0) { in emit_buffered_bits()
304 nbits--; in emit_buffered_bits()
316 register int temp, nbits; in emit_eobrun() local
320 nbits = 0; in emit_eobrun()
322 nbits++; in emit_eobrun()
324 if (nbits > 14) in emit_eobrun()
327 emit_symbol(entropy, entropy->ac_tbl_no, nbits << 4); in emit_eobrun()
328 if (nbits) in emit_eobrun()
329 emit_bits(entropy, entropy->EOBRUN, nbits); in emit_eobrun()
[all …]
Djchuff.c306 int nbits = 0, temp = i; in jpeg_make_c_derived_tbl() local
307 while (temp) {temp >>= 1; nbits++;} in jpeg_make_c_derived_tbl()
308 jpeg_nbits_table[i] = nbits; in jpeg_make_c_derived_tbl()
400 temp2 &= (((INT32) 1)<<nbits) - 1; \
403 PUT_BITS(temp2, nbits) \
414 temp2 &= (((INT32) 1)<<nbits) - 1; \
417 PUT_BITS(temp2, nbits) \
486 int nbits; in encode_one_block() local
515 nbits = JPEG_NBITS(temp); in encode_one_block()
518 code = dctbl->ehufco[nbits]; in encode_one_block()
[all …]
/external/chromium_org/media/formats/mp2t/
Dtimestamp_unroller.cc22 const int nbits = 33; in GetUnrolledTimestamp() local
26 DCHECK_EQ((timestamp >> nbits), 0); in GetUnrolledTimestamp()
52 (previous_unrolled_timestamp_ >> nbits); in GetUnrolledTimestamp()
53 int64 time0 = ((previous_unrolled_time_high - 1) << nbits) | timestamp; in GetUnrolledTimestamp()
54 int64 time1 = ((previous_unrolled_time_high + 0) << nbits) | timestamp; in GetUnrolledTimestamp()
55 int64 time2 = ((previous_unrolled_time_high + 1) << nbits) | timestamp; in GetUnrolledTimestamp()
Dts_section_psi.cc17 int nbits = 8; in IsCrcValid() local
19 data_msb_aligned <<= (32 - nbits); in IsCrcValid()
21 while (nbits > 0) { in IsCrcValid()
30 nbits--; in IsCrcValid()
/external/chromium_org/third_party/smhasher/src/
DBitvec.cpp196 int nbits = len*8; in lshift1() local
198 for(int i = nbits-1; i >= 0; i--) in lshift1()
276 int nbits = len*8; in rshift1() local
278 for(int i = 0; i < nbits; i++) in rshift1()
355 int nbits = len * 8; in lrot1() local
359 uint32_t bit = getbit(blob,len,nbits-1); in lrot1()
450 int nbits = len * 8; in rrot1() local
458 setbit(blob,len,nbits-1,bit); in rrot1()
549 int nbits = len*8; in window1() local
550 start %= nbits; in window1()
[all …]
/external/openssl/crypto/dsa/
Ddsa_pmeth.c72 int nbits; /* size of p in bits (default: 1024) */ member
87 dctx->nbits = 1024; in pkey_dsa_init()
106 dctx->nbits = sctx->nbits; in pkey_dsa_copy()
167 dctx->nbits = p1; in pkey_dsa_ctrl()
222 int nbits; in pkey_dsa_ctrl_str() local
223 nbits = atoi(value); in pkey_dsa_ctrl_str()
224 return EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits); in pkey_dsa_ctrl_str()
257 ret = dsa_builtin_paramgen(dsa, dctx->nbits, dctx->qbits, dctx->pmd, in pkey_dsa_paramgen()
/external/webrtc/src/common_audio/signal_processing/
Dget_scaling_square.c22 int nbits = WebRtcSpl_GetSizeInBits(times); in WebRtcSpl_GetScalingSquare() local
42 return (t > nbits) ? 0 : nbits - t; in WebRtcSpl_GetScalingSquare()
/external/chromium_org/third_party/webrtc/common_audio/signal_processing/
Dget_scaling_square.c24 int16_t nbits = WebRtcSpl_GetSizeInBits(times); in WebRtcSpl_GetScalingSquare() local
44 return (t > nbits) ? 0 : nbits - t; in WebRtcSpl_GetScalingSquare()
/external/jemalloc/include/jemalloc/internal/
Dbitmap.h33 size_t nbits; member
49 void bitmap_info_init(bitmap_info_t *binfo, size_t nbits);
51 size_t bitmap_size(size_t nbits);
82 assert(bit < binfo->nbits); in bitmap_get()
95 assert(bit < binfo->nbits); in bitmap_set()
152 assert(bit < binfo->nbits); in bitmap_unset()

1234