Lines Matching refs:mchunkptr

309 typedef struct malloc_chunk* mchunkptr;  typedef
534 static void do_malloc_stats(const mchunkptr p) in do_malloc_stats()
544 static void do_free_stats(const mchunkptr p) in do_free_stats()
600 #define next_chunk(p) ((mchunkptr)((char*)(p) + (p)->size))
604 #define prev_chunk(p) ((mchunkptr)((char*)(p)-((((int*)(p))[-1]) & ~(INUSE))))
609 static inline void set_size(mchunkptr p, unsigned int sz) in set_size()
619 static inline void* chunk2mem(mchunkptr p) in chunk2mem()
628 mchunkptr sanity_check(void* mem) in sanity_check()
630 mchunkptr p = (mchunkptr)((char*)(mem) - SIZE_SZ); in sanity_check()
643 static inline mchunkptr mem2chunk(void* mem) in mem2chunk()
645 mchunkptr p = (mchunkptr)((char*)(mem) - SIZE_SZ); in mem2chunk()
671 static inline void unlink(mchunkptr p) in unlink()
673 mchunkptr b = p->bk; in unlink()
674 mchunkptr f = p->fd; in unlink()
685 static inline void split(mchunkptr p, unsigned int offset) in split()
691 mchunkptr h = &(bn->hd); /* its head */ in split()
692 mchunkptr b = h->bk; /* old back element */ in split()
693 mchunkptr t = (mchunkptr)((char*)(p) + offset); /* remaindered chunk */ in split()
716 static inline void consollink(mchunkptr p) in consollink()
719 mchunkptr h = &(bn->hd); in consollink()
720 mchunkptr b = h->bk; in consollink()
732 static inline void frontlink(mchunkptr p) in frontlink()
735 mchunkptr h = &(bn->hd); in frontlink()
736 mchunkptr f = h->fd; in frontlink()
768 static mchunkptr malloc_from_sys(unsigned nb) in malloc_from_sys()
770 mchunkptr p; in malloc_from_sys()
806 p = (mchunkptr)ip; in malloc_from_sys()
812 mchunkptr l; in malloc_from_sys()
818 p = (mchunkptr)(last_sbrk_end); in malloc_from_sys()
858 static mchunkptr malloc_find_space(unsigned int nb) in malloc_find_space()
877 mchunkptr h = &(b->hd); /* head of list */ in malloc_find_space()
878 mchunkptr p = h->fd; /* chunk traverser */ in malloc_find_space()
882 mchunkptr nextp = p->fd; /* save, in case of relinks */ in malloc_find_space()
885 mchunkptr t; in malloc_find_space()
943 mchunkptr hd = &(b->hd); /* head of its list */ in malloc()
944 mchunkptr p = hd->fd; /* chunk traverser */ in malloc()
958 mchunkptr nextp = p->fd; /* save, in case of relinks */ in malloc()
961 mchunkptr t; in malloc()
1032 mchunkptr p = mem2chunk(mem); in free()
1060 mchunkptr p = (mchunkptr)((char*)(mem) - SIZE_SZ); in malloc_usable_size()
1078 mchunkptr p = mem2chunk(mem); in realloc()
1081 mchunkptr nxt; in realloc()
1120 mchunkptr p; in memalign()
1150 mchunkptr ap = (mchunkptr)(( ((int)(m) + mask) & -align) - SIZE_SZ); in memalign()
1162 ap = (mchunkptr)( (int)(ap) + align ); in memalign()
1207 mchunkptr p;