/illumos-gate/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 | 298 #ifndef ALIGN 299 #define ALIGN(p) (((uintptr_t)(p) + (sizeof(long) - 1)) & ~(sizeof(long) - 1)) macro
|
/illumos-gate/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);
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | getdata.c | 109 #define ALIGN(elf) ((elf->ed_class == ELFCLASS32) ? align32 : align64) macro 264 % ALIGN(elf)[d->db_data.d_type]) == 0) {
|
/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); 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);
|
/illumos-gate/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);
|
/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); 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);
|
/illumos-gate/usr/src/cmd/spell/ |
H A D | malloc.c | 45 * aligned to the data type requirements of ALIGN 54 * ALIGN, NALIGN, BLOCK, BUSY, INT 58 #define ALIGN int macro 70 ALIGN dummy[NALIGN];
|
/illumos-gate/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 | nss_dbdefs.c | 52 * ALIGN? is there an official definition of this? 57 #define ALIGN(x) ((((long)(x)) + sizeof (long) - 1) & ~(sizeof (long) - 1)) macro 66 malloc(ALIGN(sizeof (*b)) + struct_size + buffer_size); 70 b->result = (void *)ALIGN(&b[1]);
|
/illumos-gate/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 */
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | kobj_impl.h | 113 #define ALIGN(x, a) ((a) == 0 ? (uintptr_t)(x) : \ macro
|
/illumos-gate/usr/src/boot/sys/i386/include/ |
H A D | param.h | 72 #define ALIGN(p) _ALIGN(p) macro
|
/illumos-gate/usr/src/boot/sys/amd64/include/ |
H A D | param.h | 79 #define ALIGN(p) _ALIGN(p) macro
|
/illumos-gate/usr/src/psm/stand/boot/common/ |
H A D | heap_kmem.c | 421 * aligned to 8 byte boundaries (ALIGN). 423 #define ALIGN 8 /* doubleword aligned .. */ macro 424 #define ALIGNMASK (ALIGN-1) 425 #define ALIGNMORE(addr) (ALIGN - ((uintptr_t)(addr) & ALIGNMASK))
|
H A D | readfile.c | 61 #define ALIGN(x, a) \ macro 1439 va = (caddr_t)ALIGN(*spp, align);
|
/illumos-gate/usr/src/lib/libtnf/ |
H A D | libtnf.h | 106 #define ALIGN(n, a) \ macro
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_mip.h | 36 #define ALIGN(ptr) (ptr) macro
|
/illumos-gate/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);
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | getipnodeby.c | 1262 #define ALIGN(x) ((((long)(x)) + sizeof (long) - 1) & ~(sizeof (long) - 1)) macro 1272 if ((bufp->result = malloc(ALIGN(sizeof (struct hostent)) + bufsz)) ==
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | xpv_panic.c | 65 #define ALIGN(x, a) ((a) == 0 ? (uintptr_t)(x) : \ macro 920 mp->data_size = ALIGN(mp->data_size, data_align); 921 mp->data_size += ALIGN(shp->sh_size, 8); 927 mp->text_size = ALIGN(mp->text_size, text_align); 928 mp->text_size += ALIGN(shp->sh_size, 8);
|
/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); 514 taddr = ALIGN((uintptr_t)alloc_buf + size, 583 taddr = ALIGN((uintptr_t)alloc_buf + 638 taddr = ALIGN(ret_addr + size, 703 taddr = ALIGN(ret_addr + size, 833 newbrk = ALIGN(oldbrk, CACHE_COHERENCY_UNIT); 855 padding = ALIGN(newbr [all...] |
/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 macro 54 #define ALIGN(value, bound) (((value) + (bound) - 1) & ~((bound) - 1)) macro
|
/illumos-gate/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); 611 register struct icmp_ra *rap = (struct icmp_ra *)ALIGN(outpack); 643 ap = (struct icmp_ra_addr *)ALIGN(outpack + packetlen); 771 ip = (struct ip *)ALIGN(buf); 781 icp = (struct icmp *)ALIGN(buf + hlen); 804 icp = (struct icmp *)ALIGN(buf); 808 struct icmp_ra *rap = (struct icmp_ra *)ALIGN(icp); 822 if (in_cksum((ushort_t *)ALIGN(bu [all...] |
/illumos-gate/usr/src/lib/libast/common/vmalloc/ |
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...] |