Home
last modified time | relevance | path

Searched refs:lens (Results 1 – 25 of 168) sorted by relevance

1234567

/third_party/musl/src/network/
Ddn_comp.c23 static int getlens(unsigned char *lens, const char *s, int l) in getlens() argument
29 lens[i++] = j-k; in getlens()
37 const char *end, const unsigned char *lens, int nlen) in match() argument
44 l = lens[--nlen]; in match()
60 unsigned char lens[127]; in dn_comp() local
71 n = getlens(lens, src, l); in dn_comp()
76 m = match(&offset, *dnptrs, *p, end, lens, n); in dn_comp()
88 for (i=j=0; i<l-bestlen; i+=lens[j++]+1) in dn_comp()
89 dst[i] = lens[j]; in dn_comp()
/third_party/zlib/contrib/infback9/
Dinfback9.c63 while (sym < 144) state.lens[sym++] = 8; in makefixed9()
64 while (sym < 256) state.lens[sym++] = 9; in makefixed9()
65 while (sym < 280) state.lens[sym++] = 7; in makefixed9()
66 while (sym < 288) state.lens[sym++] = 8; in makefixed9()
70 inflate_table9(LENS, state.lens, 288, &(next), &(bits), state.work); in makefixed9()
74 while (sym < 32) state.lens[sym++] = 5; in makefixed9()
77 inflate_table9(DISTS, state.lens, 32, &(next), &(bits), state.work); in makefixed9()
364 state->lens[order[state->have++]] = (unsigned short)BITS(3);
368 state->lens[order[state->have++]] = 0;
372 ret = inflate_table9(CODES, state->lens, 19, &(state->next),
[all …]
Dinftree9.c32 int inflate_table9(type, lens, codes, table, bits, work) in inflate_table9() argument
34 unsigned short FAR *lens;
112 count[lens[sym]]++;
141 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;
249 len = lens[work[sym]];
/third_party/node/deps/zlib/
Dinfback.c89 while (sym < 144) state->lens[sym++] = 8; in fixedtables()
90 while (sym < 256) state->lens[sym++] = 9; in fixedtables()
91 while (sym < 280) state->lens[sym++] = 7; in fixedtables()
92 while (sym < 288) state->lens[sym++] = 8; in fixedtables()
96 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work); in fixedtables()
100 while (sym < 32) state->lens[sym++] = 5; in fixedtables()
103 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work); in fixedtables()
367 state->lens[order[state->have++]] = (unsigned short)BITS(3); in inflateBack()
371 state->lens[order[state->have++]] = 0; in inflateBack()
375 ret = inflate_table(CODES, state->lens, 19, &(state->next), in inflateBack()
[all …]
Dinftrees.c32 int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens, in inflate_table() argument
105 count[lens[sym]]++; in inflate_table()
142 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym; in inflate_table()
249 len = lens[work[sym]]; in inflate_table()
Dinflate.c266 while (sym < 144) state->lens[sym++] = 8; in fixedtables()
267 while (sym < 256) state->lens[sym++] = 9; in fixedtables()
268 while (sym < 280) state->lens[sym++] = 7; in fixedtables()
269 while (sym < 288) state->lens[sym++] = 8; in fixedtables()
273 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work); in fixedtables()
277 while (sym < 32) state->lens[sym++] = 5; in fixedtables()
280 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work); in fixedtables()
921 state->lens[order[state->have++]] = (unsigned short)BITS(3); in inflate()
925 state->lens[order[state->have++]] = 0; in inflate()
929 ret = inflate_table(CODES, state->lens, 19, &(state->next), in inflate()
[all …]
/third_party/libwebsockets/win32port/zlib/
Dinfback.c88 while (sym < 144) state->lens[sym++] = 8;
89 while (sym < 256) state->lens[sym++] = 9;
90 while (sym < 280) state->lens[sym++] = 7;
91 while (sym < 288) state->lens[sym++] = 8;
95 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
99 while (sym < 32) state->lens[sym++] = 5;
102 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
371 state->lens[order[state->have++]] = (unsigned short)BITS(3);
375 state->lens[order[state->have++]] = 0;
379 ret = inflate_table(CODES, state->lens, 19, &(state->next),
[all …]
Dinftrees.c32 int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work) in inflate_table() argument
34 unsigned short FAR *lens;
110 count[lens[sym]]++;
147 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;
256 len = lens[work[sym]];
Dinflate.c255 while (sym < 144) state->lens[sym++] = 8;
256 while (sym < 256) state->lens[sym++] = 9;
257 while (sym < 280) state->lens[sym++] = 7;
258 while (sym < 288) state->lens[sym++] = 8;
262 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
266 while (sym < 32) state->lens[sym++] = 5;
269 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
902 state->lens[order[state->have++]] = (unsigned short)BITS(3);
906 state->lens[order[state->have++]] = 0;
910 ret = inflate_table(CODES, state->lens, 19, &(state->next),
[all …]
/third_party/node/deps/v8/third_party/zlib/
Dinfback.c97 while (sym < 144) state->lens[sym++] = 8;
98 while (sym < 256) state->lens[sym++] = 9;
99 while (sym < 280) state->lens[sym++] = 7;
100 while (sym < 288) state->lens[sym++] = 8;
104 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
108 while (sym < 32) state->lens[sym++] = 5;
111 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
380 state->lens[order[state->have++]] = (unsigned short)BITS(3);
384 state->lens[order[state->have++]] = 0;
388 ret = inflate_table(CODES, state->lens, 19, &(state->next),
[all …]
Dinftrees.c32 int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work) in inflate_table() argument
34 unsigned short FAR *lens;
110 count[lens[sym]]++;
147 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;
254 len = lens[work[sym]];
/third_party/zlib/
Dinfback.c98 while (sym < 144) state->lens[sym++] = 8;
99 while (sym < 256) state->lens[sym++] = 9;
100 while (sym < 280) state->lens[sym++] = 7;
101 while (sym < 288) state->lens[sym++] = 8;
105 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
109 while (sym < 32) state->lens[sym++] = 5;
112 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
381 state->lens[order[state->have++]] = (unsigned short)BITS(3);
385 state->lens[order[state->have++]] = 0;
389 ret = inflate_table(CODES, state->lens, 19, &(state->next),
[all …]
Dinftrees.c32 int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens, in inflate_table() argument
106 count[lens[sym]]++; in inflate_table()
143 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym; in inflate_table()
250 len = lens[work[sym]]; in inflate_table()
/third_party/skia/third_party/externals/zlib/
Dinfback.c97 while (sym < 144) state->lens[sym++] = 8;
98 while (sym < 256) state->lens[sym++] = 9;
99 while (sym < 280) state->lens[sym++] = 7;
100 while (sym < 288) state->lens[sym++] = 8;
104 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
108 while (sym < 32) state->lens[sym++] = 5;
111 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
380 state->lens[order[state->have++]] = (unsigned short)BITS(3);
384 state->lens[order[state->have++]] = 0;
388 ret = inflate_table(CODES, state->lens, 19, &(state->next),
[all …]
Dinftrees.c32 int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work) in inflate_table() argument
34 unsigned short FAR *lens;
110 count[lens[sym]]++;
147 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;
254 len = lens[work[sym]];
/third_party/libsnd/src/
Dogg_vorbis.c104 static sf_count_t vorbis_read_sample (SF_PRIVATE *psf, void *ptr, sf_count_t lens, convert_func *tr…
620 vorbis_read_sample (SF_PRIVATE *psf, void *ptr, sf_count_t lens, convert_func *transfn) in vorbis_read_sample() argument
626 len = lens / psf->sf.channels ; in vorbis_read_sample()
669 vorbis_read_s (SF_PRIVATE *psf, short *ptr, sf_count_t lens) in vorbis_read_s() argument
670 { return vorbis_read_sample (psf, (void*) ptr, lens, vorbis_rshort) ; in vorbis_read_s()
674 vorbis_read_i (SF_PRIVATE *psf, int *ptr, sf_count_t lens) in vorbis_read_i() argument
675 { return vorbis_read_sample (psf, (void*) ptr, lens, vorbis_rint) ; in vorbis_read_i()
679 vorbis_read_f (SF_PRIVATE *psf, float *ptr, sf_count_t lens) in vorbis_read_f() argument
680 { return vorbis_read_sample (psf, (void*) ptr, lens, vorbis_rfloat) ; in vorbis_read_f()
684 vorbis_read_d (SF_PRIVATE *psf, double *ptr, sf_count_t lens) in vorbis_read_d() argument
[all …]
/third_party/node/deps/npm/node_modules/base64-js/
Dindex.js43 var lens = getLens(b64)
44 var validLen = lens[0]
45 var placeHoldersLen = lens[1]
55 var lens = getLens(b64)
56 var validLen = lens[0]
57 var placeHoldersLen = lens[1]
/third_party/ffmpeg/libavcodec/
Dhuffman.c116 static void get_tree_codes(uint32_t *bits, int16_t *lens, uint8_t *xlat, in get_tree_codes() argument
125 lens[*pos] = pl; in get_tree_codes()
131 get_tree_codes(bits, lens, xlat, nodes, nodes[node].n0, pfx, pl, in get_tree_codes()
134 get_tree_codes(bits, lens, xlat, nodes, nodes[node].n0 + 1, pfx, pl, in get_tree_codes()
143 int16_t lens[256]; in build_huff_tree() local
147 get_tree_codes(bits, lens, xlat, nodes, head, 0, 0, in build_huff_tree()
149 return ff_init_vlc_sparse(vlc, nb_bits, pos, lens, 2, 2, bits, 4, 4, xlat, 1, 1, 0); in build_huff_tree()
Dmvha.c57 static void get_tree_codes(uint32_t *bits, int16_t *lens, uint8_t *xlat, in get_tree_codes() argument
66 lens[*pos] = FFMAX(pl, 1); in get_tree_codes()
72 get_tree_codes(bits, lens, xlat, nodes, nodes[node].l, pfx, pl, in get_tree_codes()
75 get_tree_codes(bits, lens, xlat, nodes, nodes[node].r, pfx, pl, in get_tree_codes()
85 int16_t lens[256]; in build_vlc() local
144 get_tree_codes(bits, lens, xlat, nodes, cur_node - 1, 0, 0, &pos); in build_vlc()
146 return ff_init_vlc_sparse(vlc, 12, pos, lens, 2, 2, bits, 4, 4, xlat, 1, 1, 0); in build_vlc()
Dylc.c63 static void get_tree_codes(uint32_t *bits, int16_t *lens, uint8_t *xlat, in get_tree_codes() argument
72 lens[*pos] = FFMAX(pl, 1); in get_tree_codes()
78 get_tree_codes(bits, lens, xlat, nodes, nodes[node].l, pfx, pl, in get_tree_codes()
81 get_tree_codes(bits, lens, xlat, nodes, nodes[node].r, pfx, pl, in get_tree_codes()
90 int16_t lens[256]; in build_vlc() local
147 get_tree_codes(bits, lens, xlat, nodes, cur_node - 1, 0, 0, &pos); in build_vlc()
149 return ff_init_vlc_sparse(vlc, YLC_VLC_BITS, pos, lens, 2, 2, in build_vlc()
Dvorbisenc.c48 uint8_t *lens; member
157 av_assert2(cb->lens[entry]); in put_codeword()
158 if (pb->size_in_bits - put_bits_count(pb) < cb->lens[entry]) in put_codeword()
160 put_bits(pb, cb->lens[entry], cb->codewords[entry]); in put_codeword()
177 ff_vorbis_len2vlc(cb->lens, cb->codewords, cb->nentries); in ready_codebook()
231 if (!cb->lens[j]) in ready_residue()
299 cb->lens = av_malloc_array(cb->nentries, sizeof(uint8_t)); in create_vorbis_context()
301 if (!cb->lens || !cb->codewords) in create_vorbis_context()
303 memcpy(cb->lens, cvectors[book].clens, cvectors[book].len); in create_vorbis_context()
304 memset(cb->lens + cvectors[book].len, 0, cb->nentries - cvectors[book].len); in create_vorbis_context()
[all …]
/third_party/icu/icu4c/source/samples/cal/
Dcal.c429 int32_t lens [DAY_COUNT]; in print_month() local
457 lens[i] = u_strlen(days[i]); in print_month()
458 width += lens[i]; in print_month()
496 indent(lens[i] + 1, stdout); in print_month()
506 pad = lens[current] - u_strlen(s); in print_month()
547 int32_t lens [DAY_COUNT]; in print_year() local
580 lens[i] = u_strlen(days[i]); in print_year()
581 width += lens[i]; in print_year()
670 indent(lens[j] + 1, stdout); in print_year()
677 pad = lens[left_current] - u_strlen(s); in print_year()
[all …]
/third_party/skia/third_party/externals/icu/source/samples/cal/
Dcal.c429 int32_t lens [DAY_COUNT]; in print_month() local
457 lens[i] = u_strlen(days[i]); in print_month()
458 width += lens[i]; in print_month()
496 indent(lens[i] + 1, stdout); in print_month()
506 pad = lens[current] - u_strlen(s); in print_month()
547 int32_t lens [DAY_COUNT]; in print_year() local
580 lens[i] = u_strlen(days[i]); in print_year()
581 width += lens[i]; in print_year()
670 indent(lens[j] + 1, stdout); in print_year()
677 pad = lens[left_current] - u_strlen(s); in print_year()
[all …]
/third_party/node/deps/v8/third_party/zlib/contrib/optimizations/
Dinflate.c296 while (sym < 144) state->lens[sym++] = 8;
297 while (sym < 256) state->lens[sym++] = 9;
298 while (sym < 280) state->lens[sym++] = 7;
299 while (sym < 288) state->lens[sym++] = 8;
303 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
307 while (sym < 32) state->lens[sym++] = 5;
310 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
954 state->lens[order[state->have++]] = (unsigned short)BITS(3);
958 state->lens[order[state->have++]] = 0;
962 ret = inflate_table(CODES, state->lens, 19, &(state->next),
[all …]
/third_party/skia/third_party/externals/zlib/contrib/optimizations/
Dinflate.c295 while (sym < 144) state->lens[sym++] = 8;
296 while (sym < 256) state->lens[sym++] = 9;
297 while (sym < 280) state->lens[sym++] = 7;
298 while (sym < 288) state->lens[sym++] = 8;
302 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
306 while (sym < 32) state->lens[sym++] = 5;
309 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
954 state->lens[order[state->have++]] = (unsigned short)BITS(3);
958 state->lens[order[state->have++]] = 0;
962 ret = inflate_table(CODES, state->lens, 19, &(state->next),
[all …]

1234567