Searched refs:ALIGN (Results 1 - 17 of 17) sorted by relevance

/ast/src/cmd/dsslib/ip_t/
H A Dbgpsize.c27 #define ALIGN 16 macro
40 if (!(pad = ALIGN - fixed % ALIGN))
41 pad = ALIGN;
46 sfprintf(sfstdout, "edit bgp.h and adjust padding dimensions to pad[%u] and data[%u] for data aligned to %d bytes and a total size of %u\n", pad, data, ALIGN, TOTAL);
/ast/src/cmd/tests/vmalloc/
H A Dtregion.c34 if((((Vmulong_t)addr[i])%ALIGN) != 0)
38 if((((Vmulong_t)addr[i+1])%ALIGN) != 0)
H A Dtlast.c34 if((((Vmulong_t)addr[i])%ALIGN) != 0)
H A Dtcompact.c60 if((((Vmulong_t)addr[i])%ALIGN) != 0)
H A Dtpool.c59 if((((Vmulong_t)addr[i])%ALIGN) != 0)
H A Dtalign.c61 Vmdcheap->round = ALIGN;
/ast/src/lib/libast/vmalloc/
H A Dvmopen.c42 Vmuchar_t a[ROUND(sizeof(Vmdata_t),ALIGN)];
46 Vmuchar_t a[ROUND(sizeof(Vmalloc_t),ALIGN)];
50 Vmuchar_t a[ROUND(sizeof(Seg_t),ALIGN)];
98 vd = &init->vd.vd; /**/ASSERT(VLONG(vd)%ALIGN == 0);
105 incr = MULTIPLE(incr,ALIGN);
112 algn = (size_t)(VLONG(addr)%ALIGN);
113 init = (Vminit_t*)(addr + (algn ? ALIGN-algn : 0)); /**/ASSERT(VLONG(init)%ALIGN == 0);
114 vd = &init->vd.vd; /**/ASSERT(VLONG(vd)%ALIGN == 0);
129 vd->seg = &init->seg.seg; /**/ ASSERT(VLONG(vd->seg)%ALIGN
[all...]
H A Dvmlast.c52 size = size < ALIGN ? ALIGN : ROUND(size,ALIGN);
174 if(!seg || (VLONG(data)%ALIGN) != 0 ||
198 size = size < ALIGN ? ALIGN : ROUND(size,ALIGN);
376 size = size <= TINYSIZE ? TINYSIZE : ROUND(size,ALIGN);
377 align = MULTIPLE(align,ALIGN);
H A Dvmprivate.c60 s = size + sizeof(Seg_t) + sizeof(Block_t) + sizeof(Head_t) + 2*ALIGN;
131 if((s = (size_t)(VLONG(addr)%ALIGN)) != 0)
132 addr += ALIGN-s;
136 seg->addr = (Void_t*)(addr - (s ? ALIGN-s : 0));
138 seg->baddr = addr + size - (s ? 2*ALIGN : 0);
H A Dvmhdr.h203 /* ALIGN is chosen so that a block can store all primitive types.
234 #undef ALIGN /* bsd sys/param.h defines this */ macro
235 #define ALIGN sizeof(struct _align_s) macro
237 /* make sure that the head of a block is a multiple of ALIGN */
251 #define HEADSIZE ROUND(sizeof(struct _head_s),ALIGN)
257 /* now make sure that the body of a block is a multiple of ALIGN */
264 #define BODYSIZE ROUND(sizeof(struct _body_s),ALIGN)
273 ** sizeof(Head_t)%ALIGN == 0
274 ** sizeof(Body_t)%ALIGN == 0
287 #define TINYSIZE ROUND(sizeof(struct _tiny_s),ALIGN)
[all...]
H A Dvmmopen.c35 #undef ALIGN /* some sys/param.h define this */ macro
45 #undef ALIGN macro
46 #define ALIGN sizeof(struct _align_s) macro
70 #define MMHEAD(file) ROUND(sizeof(Mmvm_t)+strlen(file), ALIGN)
173 size += MMHEAD(mmdc->file) + ALIGN;
H A Dvmstat.c77 { s = ROUND(s,ALIGN);
H A Dvmbest.c628 /**/ ASSERT((ALIGN%(BITS+1)) == 0 );
629 /**/ ASSERT((sizeof(Head_t)%ALIGN) == 0 );
630 /**/ ASSERT((sizeof(Body_t)%ALIGN) == 0 );
631 /**/ ASSERT((BODYSIZE%ALIGN) == 0 );
635 size = size <= BODYSIZE ? BODYSIZE : ROUND(size,ALIGN);
679 /**/ ASSERT((SIZE(tp)%ALIGN) == 0);
874 size = size <= BODYSIZE ? BODYSIZE : ROUND(size,ALIGN);
888 s = SIZE(np); /**/ASSERT(s%ALIGN == 0);
897 SIZE(rp) += (s += sizeof(Head_t)); /**/ASSERT((s%ALIGN) == 0);
1024 size = size <= BODYSIZE ? BODYSIZE : ROUND(size,ALIGN);
[all...]
H A Dvmpool.c71 size = ROUND(size,ALIGN);
139 size = ROUND(vd->pool,ALIGN);
H A Dvmdebug.c383 s = ROUND(size,ALIGN) + DB_EXTRA;
515 s = ROUND(size,ALIGN) + DB_EXTRA;
676 if((s = ROUND(size,ALIGN) + DB_EXTRA) < sizeof(Body_t))
H A Dvmprofile.c483 s = ROUND(size,ALIGN) + PF_EXTRA;
583 news = ROUND(size,ALIGN) + PF_EXTRA;
676 s = (size <= TINYSIZE ? TINYSIZE : ROUND(size,ALIGN)) + PF_EXTRA;
H A Dmalloc.c729 char array[ALIGN];
742 { char array[ALIGN];

Completed in 31 milliseconds