| 121 | } |
| 122 | |
| 123 | static void ILAPIENTRY DefaultFreeFunc(const void * CONST_RESTRICT ptr) |
| 124 | { |
| 125 | if (ptr) |
| 126 | { |
| 127 | #if defined(VECTORMEM) & defined(MM_MALLOC) |
| 128 | _mm_free((void*)ptr); |
| 129 | #else |
| 130 | #if defined(VECTORMEM) & !defined(POSIX_MEMALIGN) & !defined(VALLOC) & !defined(MEMALIGN) & !defined(MM_MALLOC) |
| 131 | free(((char*)ptr) - ((char*)ptr)[-1]); |
| 132 | #else |
| 133 | free((void*)ptr); |
| 134 | #endif //OTHERS... |
| 135 | #endif //MM_MALLOC |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | /*** Manipulate Allocation/Deallocation Function ***/ |
| 140 | void ILAPIENTRY ilResetMemory() // Deprecated |
nothing calls this directly
no outgoing calls
no test coverage detected