Lines Matching refs:size
33 ** All elements in a pool have the same size.
35 ** pool: size of a block.
42 static Void_t* poolalloc(Vmalloc_t* vm, reg size_t size)
44 static Void_t* poolalloc(vm, size )
46 reg size_t size;
55 if(size <= 0)
57 if(size != vd->pool)
59 vd->pool = size;
78 size = ROUND(size,ALIGN);
83 (s = (SIZE(tp) & ~BITS) + sizeof(Head_t)) >= size )
88 { if((tp = (*_Vmextend)(vm,ROUND(size,vd->incr),NIL(Vmsearch_f))) )
99 next = (Block_t*)((Vmuchar_t*)tp+size);
100 if((s -= size) <= (size + sizeof(Head_t)) )
101 { for(; s >= size; s -= size)
105 next = (Block_t*)((Vmuchar_t*)next + size);
135 reg size_t size;
159 size = ROUND(vd->pool,ALIGN);
160 tp = (Block_t*)(laddr + (((Vmuchar_t*)addr-laddr)/size)*size );
227 static Void_t* poolresize(Vmalloc_t* vm, Void_t* data, size_t size, int type )
229 static Void_t* poolresize(vm, data, size, type )
232 size_t size;
243 { if((data = poolalloc(vm,size)) && (type&VM_RSZERO) )
244 { reg int *d = (int*)data, *ed = (int*)((char*)data+size);
250 if(size == 0)
264 if(size != vd->pool || KPVADDR(vm,data,pooladdr) != 0)
272 (*_Vmtrace)(vm, (Vmuchar_t*)data, (Vmuchar_t*)data, size, 0);
320 if(seg->size == (s = SIZE(fp)&~BITS))
337 static Void_t* poolalign(Vmalloc_t* vm, size_t size, size_t align)
339 static Void_t* poolalign(vm, size, align)
341 size_t size;
346 NOTUSED(size);