Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/watchmalloc/common/
H A Dmallint.h61 #define WORDSIZE (sizeof (WORD)) macro
63 #define ROUND(s) if ((s)%WORDSIZE) (s) += (WORDSIZE - ((s)%WORDSIZE))
112 #define DATA(b) (((char *)(b)) + WORDSIZE)
113 #define BLOCK(d) ((TREE *)(((char *)(d)) - WORDSIZE))
116 #define NEXT(b) ((TREE *)(((char *)(b)) + RSIZE(b) + WORDSIZE))
117 #define BOTTOM(b) ((DATA(b) + RSIZE(b) + WORDSIZE) == Baddr)
H A Dmalloc.c106 static TREE *List[MINSIZE/WORDSIZE-1];
107 static TREE *Last[MINSIZE/WORDSIZE-1];
110 #define NPS (WORDSIZE*8)
118 ASSERT(size % WORDSIZE == 0); in smalloc()
121 size = WORDSIZE; in smalloc()
124 i = size / WORDSIZE - 1; in smalloc()
129 ASSERT((size + WORDSIZE) * NPS >= MINSIZE); in smalloc()
132 if ((np = malloc_unlocked((size + WORDSIZE)*NPS)) == NULL) in smalloc()
180 ASSERT(WORDSIZE == ALIGN); in malloc_unlocked()
264 if ((n = (SIZE(sp) - size)) >= MINSIZE + WORDSIZE) { in malloc_unlocked()
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Dmallint.h62 #define WORDSIZE (sizeof (WORD)) macro
64 #define ROUND(s) if (s % WORDSIZE) s += (WORDSIZE - (s % WORDSIZE))
142 #define DATA(b) ((char *)(((uintptr_t)(b)) + WORDSIZE))
143 #define BLOCK(d) ((TREE *)(((uintptr_t)(d)) - WORDSIZE))
145 #define LAST(b) (*((TREE **)(((uintptr_t)(b)) - WORDSIZE)))
146 #define NEXT(b) ((TREE *)(((uintptr_t)(b)) + SIZE(b) + WORDSIZE))
147 #define BOTTOM(b) ((DATA(b) + SIZE(b) + WORDSIZE) == Baddr)
H A Dmalloc.c118 static TREE *List[MINSIZE/WORDSIZE-1]; /* lists of small blocks */
126 ASSERT(size % WORDSIZE == 0); in _smalloc()
129 size = WORDSIZE; in _smalloc()
132 i = size / WORDSIZE - 1; in _smalloc()
138 #define NPS (WORDSIZE*8) in _smalloc()
139 ASSERT((size + WORDSIZE) * NPS >= MINSIZE); in _smalloc()
142 if ((List[i] = _malloc_unlocked((size + WORDSIZE) * NPS)) == 0) in _smalloc()
186 ASSERT(WORDSIZE == ALIGN); in _malloc_unlocked()
280 if ((n = (SIZE(sp) - size)) >= MINSIZE + WORDSIZE) { in _malloc_unlocked()
281 n -= WORDSIZE; in _malloc_unlocked()
[all …]
H A Dmemalign.c107 while (align < MINSIZE + WORDSIZE) in memalign()
109 reqsize = nbytes + align + (MINSIZE + WORDSIZE); in memalign()
149 if (frag_size < MINSIZE + WORDSIZE) { in memalign()
161 frag_size -= WORDSIZE; in memalign()
171 if (frag_size >= MINSIZE + WORDSIZE) { in memalign()
179 frag_size -= WORDSIZE; in memalign()
/titanic_41/usr/src/cmd/look/
H A Dlook.c27 #define WORDSIZE 257 macro
28 char entry[WORDSIZE];
29 char word[WORDSIZE];
30 char key[WORDSIZE];
161 int avail = WORDSIZE - 1; in getword()
181 int avail = WORDSIZE - 1; in canon()
/titanic_41/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()
/titanic_41/usr/src/psm/stand/boot/common/
H A Dheap_kmem.c102 #define WORDSIZE sizeof (int) macro