MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / isNegCached

Function isNegCached

src/misc/alloc_tracker_fast_stack.cpp:59–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57static std::atomic<uint64_t> g_negCache[NEG_CACHE_SIZE];
58
59static __forceinline bool isNegCached(ULONG64 pc) {
60 uint64_t page = pc >> 16;
61 return g_negCache[page & (NEG_CACHE_SIZE - 1)].load(std::memory_order_relaxed) == page;
62}
63static __forceinline void addNegCache(ULONG64 pc) {
64 uint64_t page = pc >> 16;
65 g_negCache[page & (NEG_CACHE_SIZE - 1)].store(page, std::memory_order_relaxed);

Callers 1

tryAddModuleForPCFunction · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected