MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / util_deallocEpsilonSensitiveHeapFlag

Function util_deallocEpsilonSensitiveHeapFlag

quest/src/core/utilities.cpp:897–906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895}
896
897void util_deallocEpsilonSensitiveHeapFlag(int* ptr) {
898
899 // nothing to do if the heap flag wasn't allocated;
900 // it was never added to the list nor needs freeing
901 if (!mem_isAllocated(ptr))
902 return;
903
904 globalStructFieldPtrs.remove(ptr);
905 cpu_deallocHeapFlag(ptr);
906}
907
908void util_setEpsilonSensitiveHeapFlagsToUnknown() {
909

Callers 3

freeKrausMapFunction · 0.85
freeHeapMatrixFunction · 0.85
freePauliStrSumFunction · 0.85

Calls 2

mem_isAllocatedFunction · 0.85
cpu_deallocHeapFlagFunction · 0.85

Tested by

no test coverage detected