Searched defs:nbits (Results 1 - 25 of 45) sorted by relevance

12

/external/aac/libAACdec/src/
H A Dchannelinfo.cpp104 int nbits; local
107 nbits = 6;
110 nbits = 4;
113 pIcsInfo->MaxSfBands = (UCHAR) FDKreadBits(bs, nbits);
/external/jemalloc/src/
H A Dbitmap.c7 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) argument
12 assert(nbits > 0);
13 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS));
16 * Compute the number of groups necessary to store nbits bits, and
21 group_count = BITMAP_BITS2GROUPS(nbits);
32 binfo->nbits = nbits;
43 bitmap_size(size_t nbits) argument
47 bitmap_info_init(&binfo, nbits);
66 extra = (BITMAP_GROUP_NBITS - (binfo->nbits
[all...]
/external/libopus/celt/
H A Dentcode.c66 opus_uint32 nbits; local
82 nbits=_this->nbits_total<<BITRES;
92 return nbits-l;
/external/linux-tools-perf/src/tools/perf/util/include/linux/
H A Dbitmap.h11 #define BITMAP_LAST_WORD_MASK(nbits) \
13 ((nbits) % BITS_PER_LONG) ? \
14 (1UL<<((nbits) % BITS_PER_LONG))-1 : ~0UL \
17 #define small_const_nbits(nbits) \
18 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG)
20 static inline void bitmap_zero(unsigned long *dst, int nbits) argument
22 if (small_const_nbits(nbits))
25 int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long);
30 static inline int bitmap_weight(const unsigned long *src, int nbits) argument
37 bitmap_or(unsigned long *dst, const unsigned long *src1, const unsigned long *src2, int nbits) argument
[all...]
/external/webrtc/src/common_audio/signal_processing/
H A Dget_scaling_square.c22 int nbits = WebRtcSpl_GetSizeInBits(times); local
42 return (t > nbits) ? 0 : nbits - t;
H A Dauto_correlation.c53 int nbits = WebRtcSpl_GetSizeInBits(in_vector_length); // # of bits in the sum loop local
56 if (t > nbits)
61 scaling = nbits - t;
/external/bison/src/
H A DSbitset.c26 Sbitset__new (Sbitset__Index nbits) argument
28 /* Some functions, like Sbitset__last_byte_mask, will fail if nbits = 0. */
29 aver (nbits);
30 return xcalloc (1, Sbitset__nbytes (nbits));
34 Sbitset__new_on_obstack (Sbitset__Index nbits, struct obstack *obstackp) argument
39 aver (nbits);
40 result = obstack_alloc (obstackp, Sbitset__nbytes (nbits));
41 for (ptr = result, end = result + Sbitset__nbytes (nbits); ptr < end; ++ptr)
53 Sbitset__isEmpty (Sbitset self, Sbitset__Index nbits) argument
55 Sbitset last = self + Sbitset__nbytes (nbits)
63 Sbitset__fprint(Sbitset self, Sbitset__Index nbits, FILE *file) argument
[all...]
/external/boringssl/src/crypto/modes/
H A Dcfb.c156 /* This expects a single block of size nbits for both in and out. Note that
158 static void cfbr_encrypt_block(const uint8_t *in, uint8_t *out, unsigned nbits, argument
165 if (nbits <= 0 || nbits > 128) {
173 num = (nbits + 7) / 8;
186 rem = nbits % 8;
187 num = nbits / 8;
/external/openssh/
H A Dkexgexc.c61 u_int nbits; local
63 nbits = dh_estimate(kex->dh_need * 8);
67 kex->nbits = nbits;
72 (r = sshpkt_put_u32(ssh, kex->nbits)) != 0 ||
75 debug("SSH2_MSG_KEX_DH_GEX_REQUEST_OLD(%u) sent", kex->nbits);
80 (r = sshpkt_put_u32(ssh, kex->nbits)) != 0 ||
85 kex->min, kex->nbits, kex->max);
88 fprintf(stderr, "\nmin = %d, nbits = %d, max = %d\n",
89 kex->min, kex->nbits, ke
[all...]
H A Dkexgexs.c77 u_int min = 0, max = 0, nbits = 0; local
83 (r = sshpkt_get_u32(ssh, &nbits)) != 0 ||
87 kex->nbits = nbits;
92 nbits = MAX(DH_GRP_MIN, nbits);
93 nbits = MIN(DH_GRP_MAX, nbits);
97 if ((r = sshpkt_get_u32(ssh, &nbits)) != 0 ||
100 kex->nbits
[all...]
H A Dssh_api.c67 mm_choose_dh(int min, int nbits, int max) argument
/external/skia/src/core/
H A DSkMath.cpp64 int nbits = SkCLZ(numer) - 1; local
66 int bits = shift_bias - nbits + dbits;
76 numer <<= nbits; local
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
H A DBitSet.cs54 * We will often need to do a mod operator (i mod nbits). Its
56 * same as (i & (nbits-1)). Since mod is slow, we use a
83 * <param name="nbits">The size of the bitset in bits</param>
85 public BitSet(int nbits) { argument
86 _bits = new ulong[((nbits - 1) >> LOG_BITS) + 1];
/external/e2fsprogs/lib/ext2fs/
H A Drw_bitmaps.c35 unsigned int nbits; local
84 nbits = EXT2FS_NUM_B2C(fs,
88 if (nbits)
89 for (j = nbits; j < fs->blocksize * 8; j++)
/external/libopus/celt/tests/
H A Dtest_unit_entropy.c55 long nbits; local
93 nbits=ec_tell(&enc);
96 if(nbits2-nbits!=ftb){
98 nbits2-nbits,ftb);
103 nbits=ec_tell_frac(&enc);
107 entropy,ldexp(nbits,-3),100*(nbits-ldexp(entropy,3))/nbits);
129 if(nbits!=nbits2){
132 ldexp(nbits2,-3),ldexp(nbits,
[all...]
/external/aac/libMpegTPEnc/src/
H A Dtpenc_lib.cpp505 INT nbits = 0, nPceBits = 0; local
516 nbits = 0; /* Do not consider the ADIF header into the total bitrate */
519 nbits = adtsWrite_GetHeaderBits(&hTp->writer.adts);
524 nbits = transportEnc_LatmCountTotalBitDemandHeader( &hTp->writer.latm, auBits );
527 nbits = 0;
532 nbits += nPceBits;
534 return nbits;
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
H A DBitSet.java40 /* We will often need to do a mod operator (i mod nbits). Its
42 * same as (i & (nbits-1)). Since mod is slow, we use a
70 * @param nbits The size of the bitset in bits
72 public BitSet(int nbits) { argument
73 bits = new long[((nbits - 1) >> LOG_BITS) + 1];
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
H A DBitSet.java57 /* We will often need to do a mod operator (i mod nbits). Its
59 * same as (i & (nbits-1)). Since mod is slow, we use a
78 * @param nbits The size of the bitset in bits
80 public BitSet(int nbits) { argument
81 bits = new long[((nbits - 1) >> LOG_BITS) + 1];
/external/jemalloc/include/jemalloc/internal/
H A Dbitmap.h19 #define BITMAP_BITS2GROUPS(nbits) \
20 ((nbits + BITMAP_GROUP_NBITS_MASK) >> LG_BITMAP_GROUP_NBITS)
25 #define BITMAP_GROUPS_L0(nbits) \
26 BITMAP_BITS2GROUPS(nbits)
27 #define BITMAP_GROUPS_L1(nbits) \
28 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(nbits))
29 #define BITMAP_GROUPS_L2(nbits) \
30 BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS(BITMAP_BITS2GROUPS((nbits))))
31 #define BITMAP_GROUPS_L3(nbits) \
33 BITMAP_BITS2GROUPS((nbits)))))
79 size_t nbits; member in struct:bitmap_info_s
[all...]
/external/libvncserver/libvncserver/
H A Dzrleencodetemplate.c267 zrle_U8 nbits = 0; local
276 nbits += bppp;
277 if (nbits >= 8) {
279 nbits = 0;
282 if (nbits > 0) {
283 byte <<= 8 - nbits;
/external/boringssl/src/crypto/evp/
H A Dp_rsa.c76 int nbits; member in struct:__anon442
102 rctx->nbits = 2048;
118 dctx->nbits = sctx->nbits;
400 rctx->nbits = p1;
502 if (!RSA_generate_key_ex(rsa, rctx->nbits, rctx->pub_exp, NULL)) {
/external/jpeg/
H A Djchuff.c357 register int nbits; local
372 nbits = 0;
374 nbits++;
380 if (nbits > MAX_COEF_BITS+1)
384 if (! emit_bits(state, dctbl->ehufco[nbits], dctbl->ehufsi[nbits]))
389 if (nbits) /* emit_bits rejects calls with size 0 */
390 if (! emit_bits(state, (unsigned int) temp2, nbits))
416 nbits = 1; /* there must be at least one 1 bit */
418 nbits
576 register int nbits; local
[all...]
H A Djcphuff.c298 unsigned int nbits)
303 while (nbits > 0) {
306 nbits--;
318 register int temp, nbits; local
322 nbits = 0;
324 nbits++;
326 if (nbits > 14)
329 emit_symbol(entropy, entropy->ac_tbl_no, nbits << 4);
330 if (nbits)
331 emit_bits(entropy, entropy->EOBRUN, nbits);
297 emit_buffered_bits(phuff_entropy_ptr entropy, char * bufstart, unsigned int nbits) argument
381 register int nbits; local
468 register int nbits; local
[all...]
/external/pdfium/core/src/fxcodec/libjpeg/
H A Dfpdfapi_jchuff.c361 register int nbits; local
376 nbits = 0;
378 nbits++;
384 if (nbits > MAX_COEF_BITS+1)
388 if (! emit_bits(state, dctbl->ehufco[nbits], dctbl->ehufsi[nbits]))
393 if (nbits) /* emit_bits rejects calls with size 0 */
394 if (! emit_bits(state, (unsigned int) temp2, nbits))
420 nbits = 1; /* there must be at least one 1 bit */
422 nbits
580 register int nbits; local
[all...]
H A Dfpdfapi_jcphuff.c299 unsigned int nbits)
304 while (nbits > 0) {
307 nbits--;
319 register int temp, nbits; local
323 nbits = 0;
325 nbits++;
327 if (nbits > 14)
330 emit_symbol(entropy, entropy->ac_tbl_no, nbits << 4);
331 if (nbits)
332 emit_bits(entropy, entropy->EOBRUN, nbits);
298 emit_buffered_bits(phuff_entropy_ptr entropy, char * bufstart, unsigned int nbits) argument
382 register int nbits; local
469 register int nbits; local
[all...]

Completed in 1126 milliseconds

12