Searched refs:WORDSIZE (Results 1 - 5 of 5) sorted by relevance

/osnet-11/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.c103 static TREE *List[MINSIZE/WORDSIZE-1];
104 static TREE *Last[MINSIZE/WORDSIZE-1];
107 #define NPS (WORDSIZE*8)
115 ASSERT(size % WORDSIZE == 0);
118 size = WORDSIZE;
121 i = size / WORDSIZE - 1;
126 ASSERT((size + WORDSIZE) * NPS >= MINSIZE);
129 if ((np = malloc_unlocked((size + WORDSIZE)*NPS)) == NULL)
177 ASSERT(WORDSIZE == ALIGN);
261 if ((n = (SIZE(sp) - size)) >= MINSIZE + WORDSIZE) {
[all...]
/osnet-11/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 Dmemalign.c95 * (MINSIZE + WORDSIZE).
107 while (align < MINSIZE + WORDSIZE)
109 reqsize = nbytes + align + (MINSIZE + WORDSIZE);
149 if (frag_size < MINSIZE + WORDSIZE) {
154 * we forced align >= MINSIZE + WORDSIZE above.
161 frag_size -= WORDSIZE;
171 if (frag_size >= MINSIZE + WORDSIZE) {
179 frag_size -= WORDSIZE;
H A Dmalloc.c116 static TREE *List[MINSIZE/WORDSIZE-1]; /* lists of small blocks */
124 ASSERT(size % WORDSIZE == 0);
127 size = WORDSIZE;
130 i = size / WORDSIZE - 1;
136 #define NPS (WORDSIZE*8)
137 ASSERT((size + WORDSIZE) * NPS >= MINSIZE);
140 if ((List[i] = _malloc_unlocked((size + WORDSIZE) * NPS)) == 0)
184 ASSERT(WORDSIZE == ALIGN);
278 if ((n = (SIZE(sp) - size)) >= MINSIZE + WORDSIZE) {
279 n -= WORDSIZE;
[all...]

Completed in 42 milliseconds