Home
last modified time | relevance | path

Searched refs:ALIGN (Results 1 – 25 of 80) sorted by relevance

1234

/illumos-gate/usr/src/boot/efi/loader/arch/amd64/
H A Dldscript.amd6410 . = ALIGN(4096);
18 . = ALIGN(4096);
23 . = ALIGN(4096);
37 . = ALIGN(4096);
48 . = ALIGN(4096);
57 . = ALIGN(4096);
59 . = ALIGN(4096);
66 . = ALIGN(4096);
68 . = ALIGN(4096);
70 . = ALIGN(4096);
/illumos-gate/usr/src/contrib/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);
143 size = ((seg->baddr - (Vmuchar_t*)bp)/ALIGN) * ALIGN; /**/ ASSERT(size > 0);
146 /**/ ASSERT(SIZE(bp)%ALIGN == 0);
[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 Dvmhdr.h234 #undef ALIGN /* bsd sys/param.h defines this */
235 #define ALIGN sizeof(struct _align_s) macro
251 #define HEADSIZE ROUND(sizeof(struct _head_s),ALIGN)
264 #define BODYSIZE ROUND(sizeof(struct _body_s),ALIGN)
287 #define TINYSIZE ROUND(sizeof(struct _tiny_s),ALIGN)
289 #define MAXTINY (S_TINY*ALIGN + TINYSIZE)
294 #define INDEX(s) DIV((s)-TINYSIZE,ALIGN)
299 #define MAXCACHE (S_CACHE*ALIGN + TINYSIZE)
340 #define SEGBLOCK(s) ((Block_t*)(((Vmuchar_t*)(s)) + ROUND(sizeof(Seg_t),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);
/illumos-gate/usr/src/boot/efi/loader/arch/i386/
H A Dldscript.i38610 . = ALIGN(4096);
18 . = ALIGN(4096);
32 . = ALIGN(4096);
43 . = ALIGN(4096);
52 . = ALIGN(4096);
54 . = ALIGN(4096);
69 . = ALIGN(4096);
71 . = ALIGN(4096);
73 . = ALIGN(4096);
75 . = ALIGN(4096);
/illumos-gate/usr/src/boot/efi/loader/arch/arm64/
H A Dldscript.arm6419 . = ALIGN(16);
30 . = ALIGN(16);
37 . = ALIGN(16);
40 . = ALIGN(16);
51 . = ALIGN(16);
59 . = ALIGN(16);
61 . = ALIGN(16);
76 . = ALIGN(16);
78 . = ALIGN(16);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmallint.h72 #define ALIGN 8 macro
96 #define ALIGN 16 macro
98 #define ALIGN 8 macro
105 char w_a[ALIGN]; /* to force size */
164 #define CORESIZE (1024*ALIGN)
165 #define MAX_GETCORE (size_t)(SSIZE_MAX & ~(ALIGN - 1)) /* round down ALIGN */
166 #define MAX_MALLOC (size_t)(SIZE_MAX - CORESIZE - 3 * ALIGN) /* overflow chk */
/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmallint.h68 #define ALIGN 16 macro
70 #define ALIGN 8 macro
134 #define CORESIZE (1024*ALIGN)
135 #define MAX_GETCORE (size_t)(SSIZE_MAX & ~(ALIGN - 1)) /* round down ALIGN */
136 #define MAX_MALLOC (size_t)(SIZE_MAX - CORESIZE - 3 * ALIGN) /* overflow chk */
/illumos-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_isa.c107 pp->size = ALIGN(pp->size, shp->sh_addralign); in get_progbits_size()
108 pp->size += ALIGN(shp->sh_size, 8); in get_progbits_size()
110 tp->size = ALIGN(tp->size, 8); in get_progbits_size()
111 dp->size = ALIGN(dp->size, 8); in get_progbits_size()
/illumos-gate/usr/src/uts/sparc/krtld/
H A Dkobj_isa.c125 pp->size = ALIGN(pp->size, shp->sh_addralign); in get_progbits_size()
126 pp->size += ALIGN(shp->sh_size, 8); in get_progbits_size()
128 tp->size = ALIGN(tp->size, 8); in get_progbits_size()
129 dp->size = ALIGN(dp->size, 8); in get_progbits_size()
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Dlock.h182 ((size_t)(sizeof(DB_LOCKREGION) + ALIGN((M * M), LOCK_HASH_ALIGN)))
191 (ALIGN(LOCK_HEADER_SIZE(M) + \
193 (N) * ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT) + \
194 ALIGN((N) * sizeof(DB_LOCKOBJ), sizeof(size_t)) + \
195 ALIGN(STRING_SIZE(N), sizeof(size_t)))
H A Ddb_page.h418 ALIGN((len) + SSZA(BKEYDATA, data), 4)
443 ALIGN(sizeof(BOVERFLOW), 4)
481 ALIGN((len) + SSZA(BINTERNAL, data), 4)
509 ALIGN(sizeof(RINTERNAL), 4)
/illumos-gate/usr/src/lib/libresolv2/include/
H A Dsunw_port_after.h103 #undef ALIGN
105 #define ALIGN(x) (((uintptr_t)(x) + (sizeof (char *) - 1UL)) & \ macro
108 #define ALIGN(x) (((unsigned long)(x) + (sizeof (char *) - 1UL)) & \ macro
/illumos-gate/usr/src/boot/efi/loader/arch/arm/
H A Dldscript.arm18 . = ALIGN(16);
27 . = ALIGN(4);
35 . = ALIGN(4);
/illumos-gate/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c498 alloc_size = ALIGN(alloc_size, MTMALLOC_MIN_ALIGN); in memalign()
514 taddr = ALIGN((uintptr_t)alloc_buf + size, in memalign()
583 taddr = ALIGN((uintptr_t)alloc_buf + in memalign()
638 taddr = ALIGN(ret_addr + size, in memalign()
703 taddr = ALIGN(ret_addr + size, in memalign()
833 newbrk = ALIGN(oldbrk, CACHE_COHERENCY_UNIT); in setup_caches()
855 padding = ALIGN(newbrk, HUNKSIZE) - newbrk; in setup_caches()
1214 size = ALIGN(size, MTMALLOC_MIN_ALIGN); in oversize()
1346 endp_pv = ALIGN((uintptr_t)pv + size_pv, in add_oversize()
1360 endp_nx = ALIGN((uintptr_t)nx + size_nx, in add_oversize()
[all …]
/illumos-gate/usr/src/lib/libc/i386/crt/
H A D_rtld.c49 #define ALIGN(x, a) ((int)(x) & ~((int)(a) - 1)) macro
196 ALIGN(fph->p_vaddr, page_size), page_size); in __rtld()
209 ALIGN(fph->p_vaddr, fph->p_align) + fph->p_align, in __rtld()
236 foff = ALIGN(pptr->p_offset, page_size); in __rtld()
242 addr = (caddr_t)ALIGN(faddr + pptr->p_vaddr, page_size); in __rtld()
/illumos-gate/usr/src/lib/libc/sparc/crt/
H A D_rtld.c50 #define ALIGN(x, a) ((uintptr_t)(x) & ~((a) - 1)) macro
196 ALIGN(fph->p_vaddr, page_size), page_size); in __rtld()
209 ALIGN(fph->p_vaddr, fph->p_align) + fph->p_align, in __rtld()
236 foff = ALIGN(pptr->p_offset, page_size); in __rtld()
242 addr = (caddr_t)ALIGN(faddr + pptr->p_vaddr, page_size); in __rtld()
/illumos-gate/usr/src/cmd/sendmail/db/lock/
H A Dlock_region.c202 lrp->mem_bytes = ALIGN(STRING_SIZE(lrp->maxlocks), sizeof(size_t));
239 curaddr += ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT)) {
369 usedlocks * ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT) +
373 ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT) / (float)used;
377 incr / ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT));
381 newlocks * ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT));
408 newmem += ALIGN(incr, sizeof(size_t)) - incr;
409 incr = ALIGN(incr, sizeof(size_t));
418 incr += ALIGN(oldsize, MUTEX_ALIGNMENT) - oldsize;
442 curaddr += ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT)) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/
H A Din.rdisc.c51 #define ALIGN(ptr) (ptr) macro
769 ip = (struct ip *)ALIGN(buf); in pr_pack()
779 icp = (struct icmp *)ALIGN(buf + hlen); in pr_pack()
802 icp = (struct icmp *)ALIGN(buf); in pr_pack()
820 if (in_cksum((ushort_t *)ALIGN(buf+hlen), cc)) { in pr_pack()
885 ALIGN(buf + hlen + ICMP_MINLEN + in pr_pack()
926 if (in_cksum((ushort_t *)ALIGN(buf+hlen), cc)) { in pr_pack()
1160 struct icmp *icp = (struct icmp *)ALIGN(packet); in sendbcastif()
1230 struct icmp *icp = (struct icmp *)ALIGN(packet); in sendmcastif()
1548 sin = (struct sockaddr_in *)ALIGN(addr); in getconfig()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgetprotoent_r.c142 len = (char *)ALIGN(buf) - buf; in copy_protoent()
157 cp = (char *)ALIGN(buf) + numptr * sizeof(char *); in copy_protoent()
166 pptr->p_aliases = (char **)ALIGN(buf); in copy_protoent()
H A Dgetnetent_r.c151 len = (char *)ALIGN(buf) - buf; in copy_netent()
167 cp = (char *)ALIGN(buf) + numptr * sizeof(char *); in copy_netent()
176 nptr->n_aliases = (char **)ALIGN(buf); in copy_netent()
H A Dgetservent_r.c145 len = (char *)ALIGN(buf) - buf; in copy_servent()
161 cp = (char *)ALIGN(buf) + numptr * sizeof(char *); in copy_servent()
170 sptr->s_aliases = (char **)ALIGN(buf); in copy_servent()
H A Dgethostent_r.c163 len = (char *)ALIGN(buf) - buf; in copy_hostent()
182 ptr = (char **)ALIGN(buf); in copy_hostent()
183 cp = (char *)ALIGN(buf) + nptr * sizeof(char *); in copy_hostent()
/illumos-gate/usr/src/cmd/sendmail/db/
H A Ddb_int.h52 #define ALIGNP(value, bound) ALIGN((ALIGNTYPE)value, bound)
53 #undef ALIGN
54 #define ALIGN(value, bound) (((value) + (bound) - 1) & ~((bound) - 1)) macro

1234