mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 00:50:38 +08:00
Small performace optimizations
This commit is contained in:
Vendored
+11
@@ -661,6 +661,17 @@
|
||||
#define PHMAP_BUILTIN_UNREACHABLE() (void)0
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// RESTRICT
|
||||
// ----------------------------------------------------------------------
|
||||
#if (defined(__GNUC__) && (__GNUC__ > 3)) || defined(__clang__)
|
||||
#define PHMAP_RESTRICT __restrict__
|
||||
#elif defined(_MSC_VER) && _MSC_VER >= 1400
|
||||
#define PHMAP_RESTRICT __restrict
|
||||
#else
|
||||
#define PHMAP_RESTRICT
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// base/macros.h
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user