Struct AnyIndexHash

Struct Documentation

struct AnyIndexHash

Performs deco hashing on block indexes.

Based on recommendations of “Investigating the impact of Suboptimal Hashing Functions” by L. Buckley et al.

Public Functions

std::size_t operator()(const AnyIndex &index) const

Public Static Attributes

constexpr size_t sl = 17191

number was arbitrarily chosen with no good justification

constexpr size_t sl2 = sl * sl