/titanic_50/usr/src/lib/libast/common/vmalloc/ |
H A D | vmopen.c | 44 char a[3*ALIGN]; /* extra to fuss with alignment */ 86 if((a = (size_t)(VLONG(addr)%ALIGN)) != 0) 87 addr += ALIGN-a; 105 incr = MULTIPLE(incr,ALIGN); 115 if((a = (size_t)(VLONG(addr)%ALIGN)) != 0) 116 addr += ALIGN-a; 138 vd->seg = (Seg_t*)(addr + ROUND(incr,ALIGN)); 139 /**/ ASSERT(VLONG(vd->seg)%ALIGN == 0); 144 seg->addr = (Void_t*)(addr - (a ? ALIGN-a : 0)); 146 seg->baddr = addr + s - (a ? ALIGN : 0); [all …]
|
H A D | vmlast.c | 61 size = size < ALIGN ? ALIGN : ROUND(size,ALIGN); 211 if(!seg || (VLONG(data)%ALIGN) != 0 || 236 size = size < ALIGN ? ALIGN : ROUND(size,ALIGN); 422 size = size <= TINYSIZE ? TINYSIZE : ROUND(size,ALIGN); 423 align = MULTIPLE(align,ALIGN);
|
H A D | vmhdr.h | 271 #undef ALIGN /* bsd sys/param.h defines this */ 272 #define ALIGN sizeof(struct _align_s) macro 288 #define HEADSIZE ROUND(sizeof(struct _head_s),ALIGN) 301 #define BODYSIZE ROUND(sizeof(struct _body_s),ALIGN) 322 #define TINYSIZE ROUND(sizeof(struct _tiny_s),ALIGN) 324 #define MAXTINY (S_TINY*ALIGN + TINYSIZE) 329 #define INDEX(s) DIV((s)-TINYSIZE,ALIGN) 334 #define MAXCACHE (S_CACHE*ALIGN + TINYSIZE) 375 #define SEGBLOCK(s) ((Block_t*)(((Vmuchar_t*)(s)) + ROUND(sizeof(Seg_t),ALIGN)))
|
H A D | vmprivate.c | 66 s = size + sizeof(Seg_t) + sizeof(Block_t) + sizeof(Head_t) + 2*ALIGN; 157 if((s = (size_t)(VLONG(addr)%ALIGN)) != 0) 158 addr += ALIGN-s; 162 seg->addr = (Void_t*)(addr - (s ? ALIGN-s : 0)); 164 seg->baddr = addr + size - (s ? 2*ALIGN : 0);
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | mallint.h | 74 #define ALIGN 8 macro 98 #define ALIGN 16 macro 100 #define ALIGN 8 macro 107 char w_a[ALIGN]; /* to force size */ 166 #define CORESIZE (1024*ALIGN) 167 #define MAX_GETCORE (size_t)(SSIZE_MAX & ~(ALIGN - 1)) /* round down ALIGN */ 168 #define MAX_MALLOC (size_t)(SIZE_MAX - CORESIZE - 3 * ALIGN) /* overflow chk */
|
/titanic_50/usr/src/lib/libbc/libc/sys/common/ |
H A D | getdents.c | 36 #define ALIGN 4 macro 90 strlen(ndir->d_name) + ALIGN) & ~(ALIGN - 1)) < 97 dir->d_namlen + ALIGN) & -ALIGN);
|
/titanic_50/usr/src/lib/watchmalloc/common/ |
H A D | mallint.h | 70 #define ALIGN 16 macro 72 #define ALIGN 8 macro 136 #define CORESIZE (1024*ALIGN) 137 #define MAX_GETCORE (size_t)(SSIZE_MAX & ~(ALIGN - 1)) /* round down ALIGN */ 138 #define MAX_MALLOC (size_t)(SIZE_MAX - CORESIZE - 3 * ALIGN) /* overflow chk */
|
/titanic_50/usr/src/uts/intel/amd64/krtld/ |
H A D | kobj_isa.c | 109 pp->size = ALIGN(pp->size, shp->sh_addralign); in get_progbits_size() 110 pp->size += ALIGN(shp->sh_size, 8); in get_progbits_size() 112 tp->size = ALIGN(tp->size, 8); in get_progbits_size() 113 dp->size = ALIGN(dp->size, 8); in get_progbits_size()
|
/titanic_50/usr/src/uts/intel/ia32/krtld/ |
H A D | kobj_isa.c | 109 pp->size = ALIGN(pp->size, shp->sh_addralign); in get_progbits_size() 110 pp->size += ALIGN(shp->sh_size, 8); in get_progbits_size() 112 tp->size = ALIGN(tp->size, 8); in get_progbits_size() 113 dp->size = ALIGN(dp->size, 8); in get_progbits_size()
|
/titanic_50/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()
|
/titanic_50/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)
|
/titanic_50/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
|
/titanic_50/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()
|
/titanic_50/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()
|
/titanic_50/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 …]
|
/titanic_50/usr/src/cmd/sendmail/db/lock/ |
H A D | lock_region.c | 204 lrp->mem_bytes = ALIGN(STRING_SIZE(lrp->maxlocks), sizeof(size_t)); 241 curaddr += ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT)) { 371 usedlocks * ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT) + 375 ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT) / (float)used; 379 incr / ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT)); 383 newlocks * ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT)); 410 newmem += ALIGN(incr, sizeof(size_t)) - incr; 411 incr = ALIGN(incr, sizeof(size_t)); 420 incr += ALIGN(oldsize, MUTEX_ALIGNMENT) - oldsize; 444 curaddr += ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT)) {
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/ |
H A D | in.rdisc.c | 53 #define ALIGN(ptr) (ptr ? 0 : 0) macro 55 #define ALIGN(ptr) (ptr) macro 553 register struct icmp *icp = (struct icmp *)ALIGN(outpack); in solicitor() 611 register struct icmp_ra *rap = (struct icmp_ra *)ALIGN(outpack); in advertise() 643 ap = (struct icmp_ra_addr *)ALIGN(outpack + packetlen); in advertise() 771 ip = (struct ip *)ALIGN(buf); in pr_pack() 781 icp = (struct icmp *)ALIGN(buf + hlen); in pr_pack() 804 icp = (struct icmp *)ALIGN(buf); in pr_pack() 808 struct icmp_ra *rap = (struct icmp_ra *)ALIGN(icp); in pr_pack() 822 if (in_cksum((ushort_t *)ALIGN(buf+hlen), cc)) { in pr_pack() [all …]
|
/titanic_50/usr/src/lib/libresolv2/common/irs/ |
H A D | getprotoent_r.c | 146 len = (char *)ALIGN(buf) - buf; in copy_protoent() 161 cp = (char *)ALIGN(buf) + numptr * sizeof(char *); in copy_protoent() 170 pptr->p_aliases = (char **)ALIGN(buf); in copy_protoent()
|
H A D | getnetent_r.c | 155 len = (char *)ALIGN(buf) - buf; in copy_netent() 171 cp = (char *)ALIGN(buf) + numptr * sizeof(char *); in copy_netent() 180 nptr->n_aliases = (char **)ALIGN(buf); in copy_netent()
|
H A D | getservent_r.c | 149 len = (char *)ALIGN(buf) - buf; in copy_servent() 165 cp = (char *)ALIGN(buf) + numptr * sizeof(char *); in copy_servent() 174 sptr->s_aliases = (char **)ALIGN(buf); in copy_servent()
|
H A D | gethostent_r.c | 167 len = (char *)ALIGN(buf) - buf; in copy_hostent() 186 ptr = (char **)ALIGN(buf); in copy_hostent() 187 cp = (char *)ALIGN(buf) + nptr * sizeof(char *); in copy_hostent()
|
/titanic_50/usr/src/cmd/sgs/rtld.4.x/ |
H A D | rtld.4.x.c | 48 #define ALIGN(x, a) ((int)(x) & ~((int)(a) - 1)) macro 442 ALIGN(fph->p_vaddr, page_size), page_size); 455 ALIGN(fph->p_vaddr, fph->p_align) + fph->p_align, 482 foff = ALIGN(pptr->p_offset, page_size); 488 addr = (caddr_t)ALIGN(faddr + pptr->p_vaddr, page_size);
|
/titanic_50/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
|
/titanic_50/usr/src/lib/libc/port/threads/ |
H A D | tls.c | 40 #define ALIGN 16 macro 42 #define ALIGN 8 macro 118 ASSERT((statictlssize & (ALIGN - 1)) == 0); in __tls_static_mods() 134 ASSERT((tlsp->tm_stattlsoffset & (ALIGN - 1)) == 0); in __tls_static_mods()
|