Home
last modified time | relevance | path

Searched refs:wsize (Results 1 – 21 of 21) sorted by relevance

/device/google/contexthub/firmware/lib/libc/
Dbcopy.c45 #define wsize sizeof(word) macro
46 #define wmask (wsize - 1)
93 if ((t ^ (uintptr_t)dst) & wmask || length < wsize) in memcpy()
96 t = wsize - (t & wmask); in memcpy()
103 t = length / wsize; in memcpy()
104 TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize); in memcpy()
117 if ((t ^ (uintptr_t)dst) & wmask || length <= wsize) in memcpy()
124 t = length / wsize; in memcpy()
125 TLOOP(src -= wsize; dst -= wsize; *(word *)dst = *(word *)src); in memcpy()
Dmemset.c40 #define wsize sizeof(u_int) macro
41 #define wmask (wsize - 1)
83 if (length < 3 * wsize) { in bzero()
104 t = wsize - t; in bzero()
112 t = length / wsize; in bzero()
115 dst += wsize; in bzero()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
Dinfback.c56 state->wsize = 1U << windowBits;
205 left = state->wsize; \
278 left = state->wsize;
468 if (state->whave < state->wsize)
469 state->whave = state->wsize - left;
470 inflate_fast(strm, state->wsize);
560 if (state->offset > state->wsize - (state->whave < state->wsize ?
571 copy = state->wsize - state->offset;
592 if (left < state->wsize) {
593 if (out(out_desc, state->window, state->wsize - left))
Dinflate.c118 state->wsize = 0;
341 if (state->wsize == 0) {
342 state->wsize = 1U << state->wbits;
349 if (copy >= state->wsize) {
350 zmemcpy(state->window, strm->next_out - state->wsize, state->wsize);
352 state->whave = state->wsize;
355 dist = state->wsize - state->write;
362 state->whave = state->wsize;
366 if (state->write == state->wsize) state->write = 0;
367 if (state->whave < state->wsize) state->whave += dist;
[all …]
Dinffast.c80 unsigned wsize; /* window size or zero if not using window */ local
107 wsize = state->wsize;
196 from += wsize - op;
206 from += wsize + write - op;
Ddeflate.c1272 uInt wsize = s->w_size; local
1280 more = wsize;
1293 if (s->strstart >= wsize+MAX_DIST(s)) {
1295 zmemcpy(s->window, s->window+wsize, (unsigned)wsize);
1296 s->match_start -= wsize;
1297 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */
1298 s->block_start -= (long) wsize;
1311 *p = (Pos)(m >= wsize ? m-wsize : NIL);
1314 n = wsize;
1319 *p = (Pos)(m >= wsize ? m-wsize : NIL);
[all …]
Dinflate.h89 unsigned wsize; /* window size or zero if not using window */ member
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
Dinfback.c65 state->wsize = 1U << windowBits;
214 left = state->wsize; \
287 left = state->wsize;
485 if (state->whave < state->wsize)
486 state->whave = state->wsize - left;
487 inflate_fast(strm, state->wsize);
577 if (state->offset > state->wsize - (state->whave < state->wsize ?
588 copy = state->wsize - state->offset;
609 if (left < state->wsize) {
610 if (out(out_desc, state->window, state->wsize - left))
Dinffast.c80 unsigned wsize; /* window size or zero if not using window */ local
107 wsize = state->wsize;
218 from += wsize - op;
228 from += wsize + wnext - op;
Dinflate.c136 state->wsize = 0;
398 if (state->wsize == 0) {
399 state->wsize = 1U << state->wbits;
405 if (copy >= state->wsize) {
406 zmemcpy(state->window, end - state->wsize, state->wsize);
408 state->whave = state->wsize;
411 dist = state->wsize - state->wnext;
418 state->whave = state->wsize;
422 if (state->wnext == state->wsize) state->wnext = 0;
423 if (state->whave < state->wsize) state->whave += dist;
[all …]
Dinflate.h93 unsigned wsize; /* window size or zero if not using window */ member
Ddeflate.c1396 uInt wsize = s->w_size; local
1406 more = wsize;
1419 if (s->strstart >= wsize+MAX_DIST(s)) {
1421 zmemcpy(s->window, s->window+wsize, (unsigned)wsize);
1422 s->match_start -= wsize;
1423 s->strstart -= wsize; /* we now have strstart >= MAX_DIST */
1424 s->block_start -= (long) wsize;
1436 *p = (Pos)(m >= wsize ? m-wsize : NIL);
1439 n = wsize;
1444 *p = (Pos)(m >= wsize ? m-wsize : NIL);
[all …]
/device/google/crosshatch/json-c/
Djson_util.c105 unsigned int wpos, wsize; in json_object_to_file_ext() local
123wsize = (unsigned int)(strlen(json_str) & UINT_MAX); /* CAW: probably unnecessary, but the most 64… in json_object_to_file_ext()
125 while(wpos < wsize) { in json_object_to_file_ext()
126 if((ret = write(fd, json_str + wpos, wsize-wpos)) < 0) { in json_object_to_file_ext()
/device/google/bonito/json-c/
Djson_util.c105 unsigned int wpos, wsize; in json_object_to_file_ext() local
123wsize = (unsigned int)(strlen(json_str) & UINT_MAX); /* CAW: probably unnecessary, but the most 64… in json_object_to_file_ext()
125 while(wpos < wsize) { in json_object_to_file_ext()
126 if((ret = write(fd, json_str + wpos, wsize-wpos)) < 0) { in json_object_to_file_ext()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/ZLib/
Dinffast.c63 unsigned wsize; /* window size or zero if not using window */ local
90 wsize = state->wsize;
201 from += wsize - op;
211 from += wsize + wnext - op;
Dinflate.c151 state->wsize = 0;
415 if (state->wsize == 0) {
416 state->wsize = 1U << state->wbits;
422 if (copy >= state->wsize) {
423 zmemcpy(state->window, end - state->wsize, state->wsize);
425 state->whave = state->wsize;
428 dist = state->wsize - state->wnext;
435 state->whave = state->wsize;
439 if (state->wnext == state->wsize) state->wnext = 0;
440 if (state->whave < state->wsize) state->whave += dist;
[all …]
Dinflate.h96 unsigned wsize; /* window size or zero if not using window */ member
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dzlibmodule.c214 int wsize=DEF_WBITS; in PyZlib_decompress() local
219 &input, &length, &wsize, &r_strlen)) in PyZlib_decompress()
235 err = inflateInit2(&zst, wsize); in PyZlib_decompress()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dzlibmodule.c220 int wsize=DEF_WBITS; in PyZlib_decompress() local
225 &input, &length, &wsize, &r_strlen)) in PyZlib_decompress()
241 err = inflateInit2(&zst, wsize); in PyZlib_decompress()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/cjkcodecs/
Dmultibytecodec.c1030 Py_ssize_t wsize, finalsize = 0, size, origpending; in mbidecoder_decode() local
1043 wsize = size; in mbidecoder_decode()
1051 wsize = size + self->pendingsize; in mbidecoder_decode()
1052 wdata = PyMem_Malloc(wsize); in mbidecoder_decode()
1060 if (decoder_prepare_buffer(&buf, wdata, wsize) != 0) in mbidecoder_decode()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/cjkcodecs/
Dmultibytecodec.c1033 Py_ssize_t wsize, finalsize = 0, size, origpending; in mbidecoder_decode() local
1046 wsize = size; in mbidecoder_decode()
1054 wsize = size + self->pendingsize; in mbidecoder_decode()
1055 wdata = PyMem_Malloc(wsize); in mbidecoder_decode()
1063 if (decoder_prepare_buffer(&buf, wdata, wsize) != 0) in mbidecoder_decode()