This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getUint32 = (arr: Uint8Array, i: number) => ( | |
arr[i] | arr[i + 1 | 0] << 8 | arr[i + 2 | 0] << 16 | arr[i + 3 | 0] << 24 | |
); | |
const rotl32 = (x: number, r: number) => (x << r) | (x >>> 32 - r); | |
const xxh32 = (buf: Uint8Array, seed = 0) => { | |
seed |= 0; | |
const len = buf.length | 0; | |
let i = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define LOAD_FACTOR 0.5 | |
#include "robin-hood.hpp" | |
#define ERASE_TECHNIQUE USE_SHIFTING | |
#include "robin-hood.hpp" | |
#include "random.hpp" | |
#include "lib/bytell_hash_map.hpp" | |
#define LOOKUP_ZIPF true | |
#include <cmath> | |
#include <cstdint> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef DLAS_HPP | |
#include "intdef.hpp" | |
#include <array> | |
#include <algorithm> | |
#include <functional> | |
#include <utility> | |
template<class T, class U> | |
T incMod(T x, U mod) { |
OlderNewer