Lines Matching refs:BLOCKSIZE
127 #define BLOCKSIZE (1 << BLOCKLOG)
128 #define BLOCKIFY(SIZE) (((SIZE) + BLOCKSIZE - 1) / BLOCKSIZE)
177 #define BLOCK(A) (((char *) (A) - _heapbase) / BLOCKSIZE + 1)
178 #define ADDRESS(B) ((__ptr_t) (((B) - 1) * BLOCKSIZE + _heapbase))
423 (char *) NULL)) % BLOCKSIZE;
426 adj = BLOCKSIZE - adj;
445 heapsize = HEAP / BLOCKSIZE;
547 if (size <= BLOCKSIZE / 2)
572 % BLOCKSIZE) >> log;
584 result = malloc (BLOCKSIZE);
589 for (i = 1; i < (__malloc_size_t) (BLOCKSIZE >> log); ++i)
605 _chunks_free += (BLOCKSIZE >> log) - 1;
606 _bytes_free += BLOCKSIZE - (1 << log);
607 _bytes_used -= BLOCKSIZE - (1 << log);
630 (morecore ((blocks - lastblocks) * BLOCKSIZE)) != NULL)
637 _bytes_free += (blocks - lastblocks) * BLOCKSIZE;
640 result = morecore (blocks * BLOCKSIZE);
647 _bytes_used += blocks * BLOCKSIZE;
683 _bytes_used += blocks * BLOCKSIZE;
684 _bytes_free -= blocks * BLOCKSIZE;
777 _bytes_used -= _heapinfo[block].busy.info.size * BLOCKSIZE;
778 _bytes_free += _heapinfo[block].busy.info.size * BLOCKSIZE;
831 register __malloc_size_t bytes = blocks * BLOCKSIZE;
858 if (_heapinfo[block].busy.info.frag.nfree == (BLOCKSIZE >> type) - 1)
863 for (i = 1; i < (__malloc_size_t) (BLOCKSIZE >> type); ++i)
873 _bytes_used += BLOCKSIZE;
874 _chunks_free -= BLOCKSIZE >> type;
875 _bytes_free -= BLOCKSIZE;
901 % BLOCKSIZE >> type);
1111 if (size <= BLOCKSIZE / 2)
1161 (void) malloc (blocks * BLOCKSIZE);
1164 __ptr_t previous = malloc ((block - _heapindex) * BLOCKSIZE);
1165 (void) malloc (blocks * BLOCKSIZE);
1171 memmove (result, ptr, blocks * BLOCKSIZE);