MCPcopy Create free account
hub / github.com/LUX-Core/lux / initCacheCompile

Function initCacheCompile

src/crypto/RandomX/dataset.cpp:142–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 void initCacheCompile(randomx_cache* cache, const void* key, size_t keySize) {
143 initCache(cache, key, keySize);
144 cache->jit->enableWriting();
145 cache->jit->generateSuperscalarHash(cache->programs, cache->reciprocalCache);
146 cache->jit->generateDatasetInitCode();
147 cache->jit->enableExecution();
148 }
149
150 constexpr uint64_t superscalarMul0 = 6364136223846793005ULL;
151 constexpr uint64_t superscalarAdd1 = 9298411001130361340ULL;

Callers

nothing calls this directly

Calls 5

initCacheFunction · 0.70
enableWritingMethod · 0.45
enableExecutionMethod · 0.45

Tested by

no test coverage detected