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

Function cpu_allocHeapFlag

quest/src/cpu/cpu_config.cpp:388–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386
387
388int* cpu_allocHeapFlag() {
389
390 // we use int over bool for the flag, because often we use
391 // value -1 as a third value
392 return (int*) malloc(sizeof(int)); // may be nullptr, caller will handle
393}
394
395
396void cpu_deallocHeapFlag(int* ptr) {

Callers 5

allocSuperOpFunction · 0.85
createCompMatrFunction · 0.85
createDiagMatrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected