Home
last modified time | relevance | path

Searched refs:dist (Results 1 – 6 of 6) sorted by relevance

/lib/
Dcpu_rmap.c54 rmap->near[cpu].dist = CPU_RMAP_DIST_INF; in alloc_cpu_rmap()
95 const struct cpumask *mask, u16 dist) in cpu_rmap_copy_neigh() argument
100 if (rmap->near[cpu].dist > dist && in cpu_rmap_copy_neigh()
101 rmap->near[neigh].dist <= dist) { in cpu_rmap_copy_neigh()
103 rmap->near[cpu].dist = dist; in cpu_rmap_copy_neigh()
121 cpu, index, rmap->near[cpu].dist); in debug_print_rmap()
169 rmap->near[cpu].dist = CPU_RMAP_DIST_INF; in cpu_rmap_update()
181 rmap->near[cpu].dist = 0; in cpu_rmap_update()
/lib/zlib_inflate/
Dinffast.c92 unsigned dist; /* match distance */ in inflate_fast() local
159 dist = (unsigned)(this.val); in inflate_fast()
169 dist += (unsigned)hold & ((1U << op) - 1); in inflate_fast()
171 if (dist > dmax) { in inflate_fast()
180 if (dist > op) { /* see if copy from window */ in inflate_fast()
181 op = dist - op; /* distance back in window */ in inflate_fast()
195 from = out - dist; /* rest from output */ in inflate_fast()
213 from = out - dist; /* rest from output */ in inflate_fast()
224 from = out - dist; /* rest from output */ in inflate_fast()
243 from = out - dist; /* copy direct from output */ in inflate_fast()
[all …]
Dinflate.c123 unsigned copy, dist; in zlib_updatewindow() local
135 dist = state->wsize - state->write; in zlib_updatewindow()
136 if (dist > copy) dist = copy; in zlib_updatewindow()
137 memcpy(state->window + state->write, strm->next_out - copy, dist); in zlib_updatewindow()
138 copy -= dist; in zlib_updatewindow()
145 state->write += dist; in zlib_updatewindow()
147 if (state->whave < state->wsize) state->whave += dist; in zlib_updatewindow()
/lib/zlib_deflate/
Ddeftree.c159 #define d_code(dist) \ argument
160 ((dist) < 256 ? dist_code[dist] : dist_code[256+((dist)>>7)])
178 int dist; /* distance index */ in tr_static_init() local
200 dist = 0; in tr_static_init()
202 base_dist[code] = dist; in tr_static_init()
204 dist_code[dist++] = (uch)code; in tr_static_init()
207 Assert (dist == 256, "tr_static_init: dist != 256"); in tr_static_init()
208 dist >>= 7; /* from now on, all distances are divided by 128 */ in tr_static_init()
210 base_dist[code] = dist << 7; in tr_static_init()
212 dist_code[256 + dist++] = (uch)code; in tr_static_init()
[all …]
Ddefutil.h275 int zlib_tr_tally (deflate_state *s, unsigned dist, unsigned lc);
/lib/xz/
Dxz_dec_lzma2.c320 static inline uint32_t dict_get(const struct dictionary *dict, uint32_t dist) in dict_get() argument
322 size_t offset = dict->pos - dist - 1; in dict_get()
324 if (dist >= dict->pos) in dict_get()
346 static bool dict_repeat(struct dictionary *dict, uint32_t *len, uint32_t dist) in dict_repeat() argument
351 if (dist >= dict->full || dist >= dict->size) in dict_repeat()
357 back = dict->pos - dist - 1; in dict_repeat()
358 if (dist >= dict->pos) in dict_repeat()