Fix compile phmap failed in windows-arm64

This commit is contained in:
Force Charlie
2020-10-05 11:04:00 +08:00
parent 72beffb140
commit cb6702ad5f
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -65,6 +65,7 @@ public:
uint64_t l = umul128(operator()(), boundExcluded, &h);
return h;
#endif
return 0;
}
std::array<uint64_t, 4> state() const {
+1 -1
View File
@@ -1600,7 +1600,7 @@ public:
// specific benchmarks indicating its importance.
void prefetch_hash(size_t hash) const {
(void)hash;
#if defined(_MSC_VER)
#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))
auto seq = probe(hash);
_mm_prefetch((const char *)(ctrl_ + seq.offset()), _MM_HINT_NTA);
_mm_prefetch((const char *)(slots_ + seq.offset()), _MM_HINT_NTA);