Searched refs:WORDSIZE (Results 1 – 8 of 8) sorted by relevance
59 #define WORDSIZE (sizeof (WORD)) macro61 #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)
104 static TREE *List[MINSIZE/WORDSIZE-1];105 static TREE *Last[MINSIZE/WORDSIZE-1];108 #define NPS (WORDSIZE*8)116 ASSERT(size % WORDSIZE == 0); in smalloc()119 size = WORDSIZE; in smalloc()122 i = size / WORDSIZE - 1; in smalloc()127 ASSERT((size + WORDSIZE) * NPS >= MINSIZE); in smalloc()130 if ((np = malloc_unlocked((size + WORDSIZE)*NPS)) == NULL) in smalloc()178 ASSERT(WORDSIZE == ALIGN); in malloc_unlocked()261 if ((n = (SIZE(sp) - size)) >= MINSIZE + WORDSIZE) { in malloc_unlocked()[all …]
60 #define WORDSIZE (sizeof (WORD)) macro62 #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)
116 static TREE *List[MINSIZE/WORDSIZE-1]; /* lists of small blocks */124 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()137 ASSERT((size + WORDSIZE) * NPS >= MINSIZE); in _smalloc()140 if ((List[i] = _malloc_unlocked((size + WORDSIZE) * NPS)) == 0) in _smalloc()184 ASSERT(WORDSIZE == ALIGN); in _malloc_unlocked()278 if ((n = (SIZE(sp) - size)) >= MINSIZE + WORDSIZE) { in _malloc_unlocked()279 n -= WORDSIZE; in _malloc_unlocked()[all …]
108 while (align < MINSIZE + WORDSIZE) in memalign()110 reqsize = nbytes + align + (MINSIZE + WORDSIZE); in memalign()150 if (frag_size < MINSIZE + WORDSIZE) { in memalign()162 frag_size -= WORDSIZE; in memalign()172 if (frag_size >= MINSIZE + WORDSIZE) { in memalign()180 frag_size -= WORDSIZE; in memalign()
25 #define WORDSIZE 257 macro26 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()
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()
100 #define WORDSIZE sizeof (int) macro