/illumos-gate/usr/src/boot/efi/loader/arch/amd64/ |
H A D | ldscript.amd64 | 10 . = 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 D | vmopen.c | 42 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 == 0); 143 size = ((seg->baddr - (Vmuchar_t*)bp)/ALIGN) * ALIGN; /**/ ASSERT(size > 0); [all …]
|
H A D | vmlast.c | 52 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 D | vmhdr.h | 234 #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 D | vmprivate.c | 60 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 D | ldscript.i386 | 10 . = 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 D | ldscript.arm64 | 19 . = 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 D | mallint.h | 72 #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 D | mallint.h | 68 #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 D | kobj_isa.c | 107 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/cmd/sendmail/db/include/ |
H A D | lock.h | 182 ((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 D | db_page.h | 418 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/uts/sparc/krtld/ |
H A D | kobj_isa.c | 125 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/lib/libresolv2/include/ |
H A D | sunw_port_after.h | 103 #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 D | ldscript.arm | 18 . = ALIGN(16); 27 . = ALIGN(4); 35 . = ALIGN(4);
|
/illumos-gate/usr/src/lib/libmtmalloc/common/ |
H A D | mtmalloc.c | 137 #define ALIGN(x, a) ((((uintptr_t)(x) + ((uintptr_t)(a) - 1)) \ macro 165 #define CACHELIST_SIZE ALIGN(NUM_CACHES * sizeof (cache_head_t), \ 200 #define OVSZ_SIZE (ALIGN(sizeof (oversize_t), MTMALLOC_MIN_ALIGN)) 498 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() [all …]
|
/illumos-gate/usr/src/lib/libc/i386/crt/ |
H A D | _rtld.c | 49 #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.c | 50 #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 D | lock_region.c | 202 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 D | in.rdisc.c | 51 #define ALIGN(ptr) (ptr) macro 551 register struct icmp *icp = (struct icmp *)ALIGN(outpack); in solicitor() 609 register struct icmp_ra *rap = (struct icmp_ra *)ALIGN(outpack); in advertise() 641 ap = (struct icmp_ra_addr *)ALIGN(outpack + packetlen); in advertise() 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() 806 struct icmp_ra *rap = (struct icmp_ra *)ALIGN(icp); 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() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | getprotoent_r.c | 142 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 D | getnetent_r.c | 151 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 D | getservent_r.c | 145 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 D | gethostent_r.c | 163 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 D | db_int.h | 52 #define ALIGNP(value, bound) ALIGN((ALIGNTYPE)value, bound) 53 #undef ALIGN 54 #define ALIGN(value, bound) (((value) + (bound) - 1) & ~((bound) - 1)) macro
|