Home
last modified time | relevance | path

Searched refs:WORDSIZE (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmallint.h59 #define WORDSIZE (sizeof (WORD)) macro
61 #define ROUND(s) if ((s)%WORDSIZE) (s) += (WORDSIZE - ((s)%WORDSIZE))
110 #define DATA(b) (((char *)(b)) + WORDSIZE)
111 #define BLOCK(d) ((TREE *)(((char *)(d)) - WORDSIZE))
114 #define NEXT(b) ((TREE *)(((char *)(b)) + RSIZE(b) + WORDSIZE))
115 #define BOTTOM(b) ((DATA(b) + RSIZE(b) + WORDSIZE) == Baddr)
H A Dmalloc.c108 #define NPS (WORDSIZE*8)
119 size = WORDSIZE; in smalloc()
122 i = size / WORDSIZE - 1; in smalloc()
178 ASSERT(WORDSIZE == ALIGN); in malloc_unlocked()
263 n -= WORDSIZE; in malloc_unlocked()
383 n -= WORDSIZE; in realloc()
641 n = size + 2 * WORDSIZE; in morecore()
659 n -= WORDSIZE; in morecore()
712 n += WORDSIZE; in morecore()
1212 frag_size -= WORDSIZE; in memalign()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmallint.h60 #define WORDSIZE (sizeof (WORD)) macro
62 #define ROUND(s) if (s % WORDSIZE) s += (WORDSIZE - (s % WORDSIZE))
140 #define DATA(b) ((char *)(((uintptr_t)(b)) + WORDSIZE))
141 #define BLOCK(d) ((TREE *)(((uintptr_t)(d)) - WORDSIZE))
143 #define LAST(b) (*((TREE **)(((uintptr_t)(b)) - WORDSIZE)))
144 #define NEXT(b) ((TREE *)(((uintptr_t)(b)) + SIZE(b) + WORDSIZE))
145 #define BOTTOM(b) ((DATA(b) + SIZE(b) + WORDSIZE) == Baddr)
H A Dmalloc.c124 ASSERT(size % WORDSIZE == 0); in _smalloc()
127 size = WORDSIZE; in _smalloc()
130 i = size / WORDSIZE - 1; in _smalloc()
136 #define NPS (WORDSIZE*8) in _smalloc()
184 ASSERT(WORDSIZE == ALIGN); in _malloc_unlocked()
279 n -= WORDSIZE; in _malloc_unlocked()
396 n -= WORDSIZE; in realloc()
623 n -= WORDSIZE; in _morecore()
671 addr = Baddr - WORDSIZE; in _morecore()
672 n += WORDSIZE; in _morecore()
[all …]
H A Dmemalign.c106 while (align < MINSIZE + WORDSIZE) in memalign()
108 reqsize = nbytes + align + (MINSIZE + WORDSIZE); in memalign()
148 if (frag_size < MINSIZE + WORDSIZE) { in memalign()
160 frag_size -= WORDSIZE; in memalign()
170 if (frag_size >= MINSIZE + WORDSIZE) { in memalign()
178 frag_size -= WORDSIZE; in memalign()
/illumos-gate/usr/src/cmd/look/
H A Dlook.c25 #define WORDSIZE 257 macro
26 char entry[WORDSIZE];
27 char word[WORDSIZE];
28 char key[WORDSIZE];
159 int avail = WORDSIZE - 1; in getword()
179 int avail = WORDSIZE - 1; in canon()
/illumos-gate/usr/src/cmd/fs.d/
H A Dpreenlib.c91 #define WORDSIZE (NBBY * sizeof (uint_t)) macro
378 newsize = howmany(unit+1, WORDSIZE); in addunit()
392 devp->unitmap[unit / WORDSIZE] |= (1 << (unit % WORDSIZE)); in addunit()
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dheap_kmem.c100 #define WORDSIZE sizeof (int) macro