Home
last modified time | relevance | path

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

12345

/external/fec/
Dfec.h20 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 …]
Dviterbi29.c82 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 …]
Dviterbi27.c82 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 …]
Dviterbi615.c84 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 …]
Dviterbi39.c83 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 …]
Dviterbi29_port.c78 unsigned int nbits, /* Number of data bits */ in chainback_viterbi29_port() argument
97 while(nbits-- != 0){ in chainback_viterbi29_port()
100 k = (d[nbits].w[(endstate)/32] >> (endstate%32)) & 1; in chainback_viterbi29_port()
101 data[nbits>>3] = endstate = (endstate >> 1) | (k << 7); in chainback_viterbi29_port()
138 int update_viterbi29_blk_port(void *p,unsigned char *syms,int nbits){ in update_viterbi29_blk_port() argument
146 while(nbits--){ in update_viterbi29_blk_port()
Dviterbi39_port.c78 unsigned int nbits, /* Number of data bits */ in chainback_viterbi39_port() argument
97 while(nbits-- != 0){ in chainback_viterbi39_port()
100 k = (d[nbits].w[(endstate)/32] >> (endstate%32)) & 1; in chainback_viterbi39_port()
101 data[nbits>>3] = endstate = (endstate >> 1) | (k << 7); in chainback_viterbi39_port()
139 int update_viterbi39_blk_port(void *p,unsigned char *syms,int nbits){ in update_viterbi39_blk_port() argument
147 while(nbits--){ in update_viterbi39_blk_port()
/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/include/jemalloc/internal/
Dbitmap.h28 #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/
Dbitmap.c9 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
79 assert(nbits > 0); in bitmap_info_init()
80 assert(nbits <= (ZU(1) << LG_BITMAP_MAXBITS)); in bitmap_info_init()
82 i = nbits >> LG_BITMAP_GROUP_NBITS; in bitmap_info_init()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DHuffman.java96 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/
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.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 …]
Dfpdfapi_jchuff.c360 register int nbits; in encode_one_block() local
375 nbits = 0; in encode_one_block()
377 nbits++; in encode_one_block()
383 if (nbits > MAX_COEF_BITS+1) in encode_one_block()
387 if (! emit_bits(state, dctbl->ehufco[nbits], dctbl->ehufsi[nbits])) in encode_one_block()
392 if (nbits) /* emit_bits rejects calls with size 0 */ in encode_one_block()
393 if (! emit_bits(state, (unsigned int) temp2, nbits)) in encode_one_block()
419 nbits = 1; /* there must be at least one 1 bit */ in encode_one_block()
421 nbits++; in encode_one_block()
423 if (nbits > MAX_COEF_BITS) in encode_one_block()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/rsa/
D_version200.py180 def read_random_int(nbits): argument
184 nbytes = int(math.ceil(nbits/8.))
205 nbits = random.randint(min_nbits, rangebits)
207 return (read_random_int(nbits) % range) + minvalue
272 def getprime(nbits): argument
286 integer = read_random_int(nbits)
311 def find_p_q(nbits): argument
313 pbits = nbits + (nbits/16) #Make sure that p and q aren't too close
314 qbits = nbits - (nbits/16) #or the factoring programs can factor n
345 def calculate_keys(p, q, nbits): argument
[all …]
D_version133.py101 def read_random_int(nbits): argument
105 nbytes = ceil(nbits/8.)
131 nbits = random.randint(min_nbits, rangebits)
133 return (read_random_int(nbits) % range) + minvalue
212 def getprime(nbits): argument
225 nbytes = int(math.ceil(nbits/8.))
228 integer = read_random_int(nbits)
253 def find_p_q(nbits): argument
256 p = getprime(nbits)
258 q = getprime(nbits)
[all …]
Drandnum.py26 def read_random_bits(nbits): argument
33 nbytes, rbits = divmod(nbits, 8)
47 def read_random_int(nbits): argument
51 randomdata = read_random_bits(nbits)
56 value |= 1 << (nbits - 1)
Dkey.py433 def find_p_q(nbits, getprime_func=rsa.prime.getprime, accurate=True): argument
464 total_bits = nbits * 2
468 shift = nbits // 16
469 pbits = nbits + shift
470 qbits = nbits - shift
473 log.debug('find_p_q(%i): Finding p', nbits)
475 log.debug('find_p_q(%i): Finding q', nbits)
510 def calculate_keys(p, q, nbits): argument
533 def gen_keys(nbits, getprime_func, accurate=True): argument
544 (p, q) = find_p_q(nbits // 2, getprime_func, accurate)
[all …]
Dparallel.py34 def _find_prime(nbits, pipe): argument
36 integer = rsa.randnum.read_random_int(nbits)
46 def getprime(nbits, poolsize): argument
68 procs = [mp.Process(target=_find_prime, args=(nbits, pipe_send))
/external/libjpeg-turbo/
Djdhuff.h149 #define CHECK_BIT_BUFFER(state,nbits,action) \ argument
150 { if (bits_left < (nbits)) { \
151 if (! jpeg_fill_bit_buffer(&(state),get_buffer,bits_left,nbits)) \
155 #define GET_BITS(nbits) \ argument
156 (((int) (get_buffer >> (bits_left -= (nbits)))) & ((1<<(nbits))-1))
158 #define PEEK_BITS(nbits) \ argument
159 (((int) (get_buffer >> (bits_left - (nbits)))) & ((1<<(nbits))-1))
161 #define DROP_BITS(nbits) \ argument
162 (bits_left -= (nbits))
167 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.c391 temp2 &= (((INT32) 1)<<nbits) - 1; \
394 PUT_BITS(temp2, nbits) \
405 temp2 &= (((INT32) 1)<<nbits) - 1; \
408 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()
519 size = dctbl->ehufsi[nbits]; in encode_one_block()
523 temp2 &= (((INT32) 1)<<nbits) - 1; in encode_one_block()
527 EMIT_BITS(temp2, nbits) in encode_one_block()
[all …]
/external/pdfium/third_party/libtiff/
Dtif_lzw.c94 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/openssh/
Dkexgexs.c75 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 = MAX(DH_GRP_MIN, nbits); in input_kex_dh_gex_request()
89 nbits = MIN(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) { 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()
Dkexgexc.c62 u_int nbits; in kexgex_client() local
64 nbits = dh_estimate(kex->dh_need * 8); in kexgex_client()
68 kex->nbits = nbits; in kexgex_client()
70 kex->nbits = MIN(kex->nbits, 4096); in kexgex_client()
74 (r = sshpkt_put_u32(ssh, kex->nbits)) != 0 || in kexgex_client()
79 kex->min, kex->nbits, kex->max); in kexgex_client()
82 kex->min, kex->nbits, kex->max); in kexgex_client()
230 kex->min, kex->nbits, kex->max, in input_kex_dh_gex_reply()

12345