conversion from malloc headers to user pointers, and back
| 774 | |
| 775 | // conversion from malloc headers to user pointers, and back |
| 776 | static SPP_FORCEINLINE void *chunk2mem(const void *p) { return (void *)((char *)p + 2 * sizeof(size_t)); } |
| 777 | static SPP_FORCEINLINE mchunkptr mem2chunk(const void *mem) { return (mchunkptr)((char *)mem - 2 * sizeof(size_t)); } |
| 778 | |
| 779 | // chunk associated with aligned address A |
no outgoing calls
no test coverage detected