MCPcopy Create free account
hub / github.com/Singular/Singular / omFreeLarge

Function omFreeLarge

omalloc/omAllocSystem.c:73–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void omFreeLarge(void* addr)
74{
75 char* _addr = (char *)addr - SIZEOF_STRICT_ALIGNMENT;
76 omFreeSizeToSystem(_addr, *((size_t*) _addr) + SIZEOF_STRICT_ALIGNMENT);
77}
78
79#define _omSizeOfLargeAddr(addr) (*((size_t*) ((char*) addr - SIZEOF_STRICT_ALIGNMENT)))
80#endif /* HAVE_MALLOC_SIZE/HAVE_MALLOC_USABLE_SIZE */

Callers

nothing calls this directly

Calls 1

omFreeSizeToSystemFunction · 0.85

Tested by

no test coverage detected