Lines Matching refs:UNIT
213 int size = size_classes[m->sizeclass]*UNIT;
214 int span = UNIT + size*cnt;
243 size_t size = UNIT*size_classes[sc];
267 while (size*cnt >= 65536*UNIT)
273 if (cnt==1 && size*cnt+UNIT <= pagesize/2) cnt = 2;
277 if (size*cnt+UNIT > pagesize/2) {
301 size_t needed = size*cnt + UNIT;
308 req += IB + UNIT;
310 if (req<size+UNIT || (req>=4*pagesize && 2*cnt>usage)) {
326 active_idx = (4096-UNIT)/size-1;
330 int j = size_to_class(UNIT+cnt*size-IB);
331 int idx = alloc_slot(j, UNIT+cnt*size-IB);
337 p = enframe(g, idx, UNIT*size_classes[j]-IB, ctx.mmap_counter);
341 p[UNIT+i*size-4] = 0;
379 size_t needed = n + IB + UNIT;
470 get_stride(g) < UNIT*size_classes[g->sizeclass];