Lines Matching refs:align
1111 static Void_t* bestalign(Vmalloc_t* vm, size_t size, size_t align)
1113 static Void_t* bestalign(vm, size, align)
1116 size_t align;
1126 if(size <= 0 || align <= 0)
1139 orgalign = align;
1144 align = MULTIPLE(align,ALIGN);
1151 while(align < extra || (align - extra) < sizeof(Block_t))
1152 align *= 2;
1158 s = size + 2*(align+sizeof(Head_t)+extra);
1166 if((s = (size_t)((VLONG(data)+extra)%align)) != 0)
1167 data += align-s; /**/ASSERT(((VLONG(data)+extra)%align) == 0);
1171 { data += align;
1173 } /**/ASSERT(((VLONG(data)+extra)%align) == 0);