/osnet-11/usr/src/lib/libresolv2/include/ |
H A D | sunw_port_after.h | 103 #undef ALIGN macro 105 #define ALIGN(x) (((uintptr_t)(x) + (sizeof (char *) - 1UL)) & \ macro 108 #define ALIGN(x) (((unsigned long)(x) + (sizeof (char *) - 1UL)) & \ macro
|
H A D | port_after.h | 303 #ifndef ALIGN 304 #define ALIGN(p) (((uintptr_t)(p) + (sizeof(long) - 1)) & ~(sizeof(long) - 1)) macro
|
/osnet-11/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 [all...] |
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);
|
H A D | vmhdr.h | 240 /* ALIGN is chosen so that a block can store all primitive types. 271 #undef ALIGN /* bsd sys/param.h defines this */ macro 272 #define ALIGN sizeof(struct _align_s) macro 274 /* make sure that the head of a block is a multiple of ALIGN */ 288 #define HEADSIZE ROUND(sizeof(struct _head_s),ALIGN) 294 /* now make sure that the body of a block is a multiple of ALIGN */ 301 #define BODYSIZE ROUND(sizeof(struct _body_s),ALIGN) 308 ** sizeof(Head_t)%ALIGN == 0 309 ** sizeof(Body_t)%ALIGN == 0 322 #define TINYSIZE ROUND(sizeof(struct _tiny_s),ALIGN) [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 | vmbest.c | 683 /**/ ASSERT((ALIGN%(BITS+1)) == 0 ); 684 /**/ ASSERT((sizeof(Head_t)%ALIGN) == 0 ); 685 /**/ ASSERT((sizeof(Body_t)%ALIGN) == 0 ); 686 /**/ ASSERT((BODYSIZE%ALIGN) == 0 ); 690 size = size <= BODYSIZE ? BODYSIZE : ROUND(size,ALIGN); 744 /**/ ASSERT((SIZE(tp)%ALIGN) == 0); 948 size = size <= BODYSIZE ? BODYSIZE : ROUND(size,ALIGN); 971 size = size <= BODYSIZE ? BODYSIZE : ROUND(size,ALIGN); 985 s = SIZE(np); /**/ASSERT(s%ALIGN == 0); 994 SIZE(rp) += (s += sizeof(Head_t)); /**/ASSERT((s%ALIGN) [all...] |
H A D | vmstat.c | 71 { s = ROUND(s,ALIGN);
|
H A D | vmpool.c | 78 size = ROUND(size,ALIGN); 159 size = ROUND(vd->pool,ALIGN);
|
/osnet-11/usr/src/lib/watchmalloc/common/ |
H A D | mallint.h | 70 #define ALIGN 16 macro 72 #define ALIGN 8 macro 75 /* the proto-word; size must be ALIGN bytes */ 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 */
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | mallint.h | 72 * Alignment (ALIGN) changed to 8 for SPARC ldd/std. 74 #define ALIGN 8 macro 98 #define ALIGN 16 macro 100 #define ALIGN 8 macro 103 /* the proto-word; size must be ALIGN bytes */ 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) /* overflo [all...] |
H A D | malloc.c | 42 * with GETCORE. Default is (1024*ALIGN). 184 ASSERT(WORDSIZE == ALIGN); 192 /* make sure that size is 0 mod ALIGN */ 335 /* make sure that size is 0 mod ALIGN */ 619 if ((((uintptr_t)addr) % ALIGN) != 0) 620 offset = ALIGN - (uintptr_t)addr % ALIGN; 651 * Argument to GETCORE() must be multiple of ALIGN. 653 * to previous value, but will be ALIGN more. 687 ASSERT((SIZE(tp) % ALIGN) [all...] |
/osnet-11/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)
|
/osnet-11/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); 209 ALIGN(fph->p_vaddr, fph->p_align) + fph->p_align, 236 foff = ALIGN(pptr->p_offset, page_size); 242 addr = (caddr_t)ALIGN(faddr + pptr->p_vaddr, page_size);
|
/osnet-11/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); 209 ALIGN(fph->p_vaddr, fph->p_align) + fph->p_align, 236 foff = ALIGN(pptr->p_offset, page_size); 242 addr = (caddr_t)ALIGN(faddr + pptr->p_vaddr, page_size);
|
/osnet-11/usr/src/lib/libresolv2/common/irs/ |
H A D | getprotoent_r.c | 146 len = (char *)ALIGN(buf) - buf; 161 cp = (char *)ALIGN(buf) + numptr * sizeof(char *); 170 pptr->p_aliases = (char **)ALIGN(buf);
|
H A D | gethostent_r.c | 167 len = (char *)ALIGN(buf) - buf; 186 ptr = (char **)ALIGN(buf); 187 cp = (char *)ALIGN(buf) + nptr * sizeof(char *);
|
H A D | getnetent_r.c | 155 len = (char *)ALIGN(buf) - buf; 171 cp = (char *)ALIGN(buf) + numptr * sizeof(char *); 180 nptr->n_aliases = (char **)ALIGN(buf);
|
H A D | getservent_r.c | 149 len = (char *)ALIGN(buf) - buf; 165 cp = (char *)ALIGN(buf) + numptr * sizeof(char *); 174 sptr->s_aliases = (char **)ALIGN(buf);
|
/osnet-11/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(sizeo [all...] |
H A D | lock_deadlock.c | 103 nentries = ALIGN(nlockers, 32) / 32; 227 nentries = ALIGN(count, 32) / 32; 398 nentries = ALIGN(nlockers, 32) / 32; 485 nentries = ALIGN(nlockers, 32) / 32;
|
/osnet-11/usr/src/lib/libmtmalloc/common/ |
H A D | mtmalloc.c | 155 #define ALIGN(x, a) ((((uintptr_t)(x) + ((uintptr_t)(a) - 1))\ macro 188 * ALIGN(NUM_CACHES * 253 #define OVSZ_SIZE (ALIGN(sizeof (oversize_t), MTMALLOC_MIN_ALIGN)) 592 alloc_size = ALIGN(alloc_size, MTMALLOC_MIN_ALIGN); 608 taddr = ALIGN((uintptr_t)alloc_buf + size, 677 taddr = ALIGN((uintptr_t)alloc_buf + 732 taddr = ALIGN(ret_addr + size, 797 taddr = ALIGN(ret_addr + size, 1030 CACHELIST_SIZE = ALIGN(NUM_CACHES * sizeof (cache_head_t), 1082 newbrk = ALIGN(oldbr [all...] |
/osnet-11/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); 134 ASSERT((tlsp->tm_stattlsoffset & (ALIGN - 1)) == 0);
|
/osnet-11/usr/src/cmd/sendmail/db/ |
H A D | db_int.h | 52 #define ALIGNP(value, bound) ALIGN((ALIGNTYPE)value, bound) 53 #undef ALIGN macro 54 #define ALIGN(value, bound) (((value) + (bound) - 1) & ~((bound) - 1)) macro
|