proxygen
|
Namespaces | |
detail | |
Classes | |
class | SpookyHashV1 |
class | SpookyHashV2 |
class | StdHasher |
Functions | |
uint64_t | hash_128_to_64 (const uint64_t upper, const uint64_t lower) noexcept |
uint64_t | twang_mix64 (uint64_t key) noexcept |
uint64_t | twang_unmix64 (uint64_t key) noexcept |
uint32_t | twang_32from64 (uint64_t key) noexcept |
uint32_t | jenkins_rev_mix32 (uint32_t key) noexcept |
uint32_t | jenkins_rev_unmix32 (uint32_t key) noexcept |
uint32_t | fnv32 (const char *buf, uint32_t hash=FNV_32_HASH_START) noexcept |
uint32_t | fnv32_buf (const void *buf, size_t n, uint32_t hash=FNV_32_HASH_START) noexcept |
uint32_t | fnv32 (const std::string &str, uint32_t hash=FNV_32_HASH_START) noexcept |
uint64_t | fnv64 (const char *buf, uint64_t hash=FNV_64_HASH_START) noexcept |
uint64_t | fnv64_buf (const void *buf, size_t n, uint64_t hash=FNV_64_HASH_START) noexcept |
uint64_t | fnv64 (const std::string &str, uint64_t hash=FNV_64_HASH_START) noexcept |
uint64_t | fnva64_buf (const void *buf, size_t n, uint64_t hash=FNVA_64_HASH_START) noexcept |
uint64_t | fnva64 (const std::string &str, uint64_t hash=FNVA_64_HASH_START) noexcept |
uint32_t | hsieh_hash32_buf (const void *buf, size_t len) noexcept |
uint32_t | hsieh_hash32 (const char *s) noexcept |
uint32_t | hsieh_hash32_str (const std::string &str) noexcept |
template<class Hash , class Value > | |
uint64_t | commutative_hash_combine_value_generic (uint64_t seed, Hash const &hasher, Value const &value) |
template<class Iter , class Hash = std::hash<typename std::iterator_traits<Iter>::value_type>> | |
uint64_t | hash_range (Iter begin, Iter end, uint64_t hash=0, Hash hasher=Hash()) |
template<class Hash , class Iter > | |
uint64_t | commutative_hash_combine_range_generic (uint64_t seed, Hash const &hasher, Iter first, Iter last) |
template<class Iter > | |
uint64_t | commutative_hash_combine_range (Iter first, Iter last) |
template<class Hasher > | |
size_t | hash_combine_generic (const Hasher &) noexcept |
template<class Hasher , typename T , typename... Ts> | |
size_t | hash_combine_generic (const Hasher &h, const T &t, const Ts &...ts) noexcept(noexcept(detail::c_array_size_t{h(t), h(ts)...})) |
template<typename Hash , typename... Value> | |
uint64_t | commutative_hash_combine_generic (uint64_t seed, Hash const &hasher, Value const &...value) |
template<typename T , typename... Ts> | |
size_t | hash_combine (const T &t, const Ts &...ts) noexcept(noexcept(hash_combine_generic(StdHasher{}, t, ts...))) |
template<typename... Value> | |
uint64_t | commutative_hash_combine (Value const &...value) |
Variables | |
const uint32_t | FNV_32_HASH_START = 2166136261UL |
const uint64_t | FNV_64_HASH_START = 14695981039346656037ULL |
const uint64_t | FNVA_64_HASH_START = 14695981039346656037ULL |
uint64_t folly::hash::commutative_hash_combine | ( | Value const &... | value | ) |
Definition at line 675 of file Hash.h.
References commutative_hash_combine_generic().
Referenced by TEST().
uint64_t folly::hash::commutative_hash_combine_generic | ( | uint64_t | seed, |
Hash const & | hasher, | ||
Value const &... | value | ||
) |
Definition at line 657 of file Hash.h.
References testing::_, commutative_hash_combine_value_generic(), seed, folly::T, and uint64_t.
Referenced by commutative_hash_combine().
uint64_t folly::hash::commutative_hash_combine_range | ( | Iter | first, |
Iter | last | ||
) |
Definition at line 624 of file Hash.h.
References commutative_hash_combine_range_generic(), and folly::gen::first.
Referenced by TEST().
uint64_t folly::hash::commutative_hash_combine_range_generic | ( | uint64_t | seed, |
Hash const & | hasher, | ||
Iter | first, | ||
Iter | last | ||
) |
Definition at line 612 of file Hash.h.
References commutative_hash_combine_value_generic(), and seed.
Referenced by commutative_hash_combine_range(), and TEST().
uint64_t folly::hash::commutative_hash_combine_value_generic | ( | uint64_t | seed, |
Hash const & | hasher, | ||
Value const & | value | ||
) |
Definition at line 584 of file Hash.h.
References gen_gtest_pred_impl::Iter(), twang_mix64(), and uint64_t.
Referenced by commutative_hash_combine_generic(), commutative_hash_combine_range_generic(), and TEST().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 179 of file Hash.h.
References fnv32_buf().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 214 of file Hash.h.
References fnv64_buf().
|
inlinenoexcept |
Definition at line 199 of file Hash.h.
References i.
Referenced by proxygen::RendezvousHash::computeHash(), fnv64(), folly::io::test::DataHolder::hash(), folly::io::test::hashIOBuf(), main(), detail::FNV64::operator()(), and TEST().
|
inlinenoexcept |
Definition at line 234 of file Hash.h.
References fnva64_buf().
Referenced by TEST_P().
|
inlinenoexcept |
Definition at line 570 of file Hash.h.
References a, b, and uint64_t.
Referenced by hash_range(), folly::detail::integral_hasher< signed long long >::operator()(), and folly::Hash::operator()().
|
noexcept |
Definition at line 669 of file Hash.h.
References hash_combine_generic(), folly::pushmi::detail::t, and testing::Value().
Referenced by folly::detail::MemoryIdler::getVariationTimeout(), folly::IPAddressV4::hash(), folly::IPAddressV6::hash(), folly::SocketAddress::hash(), wangle::SSLContextKeyHash::operator()(), folly::detail::TypeDescriptorHasher::operator()(), folly::TupleHasher< index, Ts >::operator()(), folly::TupleHasher< 0, Ts... >::operator()(), std::hash< std::pair< T1, T2 > >::operator()(), and TEST().
|
inlinenoexcept |
Definition at line 634 of file Hash.h.
References folly::T.
Referenced by hash_combine(), and hash_combine_test().
|
noexcept |
Definition at line 639 of file Hash.h.
References h, and folly::pushmi::detail::t.
uint64_t folly::hash::hash_range | ( | Iter | begin, |
Iter | end, | ||
uint64_t | hash = 0 , |
||
Hash | hasher = Hash() |
||
) |
Definition at line 604 of file Hash.h.
References folly::test::begin(), folly::test::end(), and hash_128_to_64().
Referenced by folly::dynamic::hash(), std::hash< StringVector >::operator()(), and TEST().
|
inlinenoexcept |
Definition at line 301 of file Hash.h.
References hsieh_hash32_buf(), and s.
Referenced by TEST().
|
inlinenoexcept |
Definition at line 246 of file Hash.h.
References get16bits, s, uint16_t, and uint32_t.
Referenced by hsieh_hash32(), hsieh_hash32_str(), and TEST().
|
inlinenoexcept |
Definition at line 305 of file Hash.h.
References hsieh_hash32_buf().
Definition at line 97 of file Hash.h.
Referenced by createEntry(), folly::detail::integral_hasher< signed long long >::operator()(), and TEST().
Definition at line 83 of file Hash.h.
References uint32_t.
Referenced by folly::HashingThreadId::get(), and TEST().
Definition at line 49 of file Hash.h.
Referenced by commutative_hash_combine_value_generic(), proxygen::RendezvousHash::computeHash(), folly::detail::MemoryIdler::getVariationTimeout(), folly::SocketAddress::hash(), ShardedAtomicInt::inc(), folly::detail::integral_hasher< signed long long >::operator()(), folly::detail::float_hasher< float >::operator()(), folly::ParkingLot< Data >::park_until(), TEST(), and folly::ParkingLot< Data >::unpark().
const uint64_t folly::hash::FNV_64_HASH_START = 14695981039346656037ULL |
Definition at line 146 of file Hash.h.
Referenced by folly::io::test::hashIOBuf().