Searched refs:WORDSIZE (Results 1 – 8 of 8) sorted by relevance
61 #define WORDSIZE (sizeof (WORD)) macro63 #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)
106 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 …]
62 #define WORDSIZE (sizeof (WORD)) macro64 #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)
118 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 …]
107 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()
27 #define WORDSIZE 257 macro28 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()
91 #define WORDSIZE (NBBY * sizeof (uint_t)) macro378 newsize = howmany(unit+1, WORDSIZE); in addunit()392 devp->unitmap[unit / WORDSIZE] |= (1 << (unit % WORDSIZE)); in addunit()
102 #define WORDSIZE sizeof (int) macro