MCPcopy Create free account
hub / github.com/Profactor/cv-plot / keep_memory

Function keep_memory

CvPlot/ext/catch2/inc/catch.hpp:6426–6428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6424#if defined(__GNUC__) || defined(__clang__)
6425 template <typename T>
6426 inline void keep_memory(T* p) {
6427 asm volatile("" : : "g"(p) : "memory");
6428 }
6429 inline void keep_memory() {
6430 asm volatile("" : : : "memory");
6431 }

Callers 2

optimizer_barrierFunction · 0.85
deoptimize_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected