MCPcopy Create free account
hub / github.com/Niko1221/Strata / init

Method init

engine/src/ngram/ple_reader.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 uint64_t used = 0;
44
45 void init(uint64_t rows, uint32_t row_bytes = ROW_BYTES) {
46 sets = rows / WAYS;
47 rb = row_bytes;
48 keys.assign(sets * WAYS, EMPTY);
49 data.assign(sets * WAYS * rb, 0);
50 next.assign(sets, 0);
51 used = 0;
52 }
53 static uint64_t mix(uint32_t r) {
54 uint64_t x = r * 0x9E3779B97F4A7C15ull;
55 return x ^ (x >> 29);

Callers 2

openMethod · 0.45
closeMethod · 0.45

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected