| 57 | static std::atomic<uint64_t> g_negCache[NEG_CACHE_SIZE]; |
| 58 | |
| 59 | static __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 | } |
| 63 | static __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); |
no test coverage detected