mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
Fix compile phmap failed in windows-arm64
This commit is contained in:
@@ -65,6 +65,7 @@ public:
|
|||||||
uint64_t l = umul128(operator()(), boundExcluded, &h);
|
uint64_t l = umul128(operator()(), boundExcluded, &h);
|
||||||
return h;
|
return h;
|
||||||
#endif
|
#endif
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::array<uint64_t, 4> state() const {
|
std::array<uint64_t, 4> state() const {
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1600,7 +1600,7 @@ public:
|
|||||||
// specific benchmarks indicating its importance.
|
// specific benchmarks indicating its importance.
|
||||||
void prefetch_hash(size_t hash) const {
|
void prefetch_hash(size_t hash) const {
|
||||||
(void)hash;
|
(void)hash;
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))
|
||||||
auto seq = probe(hash);
|
auto seq = probe(hash);
|
||||||
_mm_prefetch((const char *)(ctrl_ + seq.offset()), _MM_HINT_NTA);
|
_mm_prefetch((const char *)(ctrl_ + seq.offset()), _MM_HINT_NTA);
|
||||||
_mm_prefetch((const char *)(slots_ + seq.offset()), _MM_HINT_NTA);
|
_mm_prefetch((const char *)(slots_ + seq.offset()), _MM_HINT_NTA);
|
||||||
|
|||||||
Reference in New Issue
Block a user