diff options
author | Tamar Christina <tamar@zhox.com> | 2021-06-06 18:22:52 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-06-24 12:01:58 -0400 |
commit | 74c874148fbea996cadf1d9fa50f2a44488dd82b (patch) | |
tree | ada4f2358c096ac587c4b43400e6e7696a8139fe /rts/Hash.c | |
parent | 38a6d8b8ce838d09a918a536ac80427d5555ca6d (diff) | |
download | haskell-74c874148fbea996cadf1d9fa50f2a44488dd82b.tar.gz |
rts: move xxxHash out of the user namespace
Diffstat (limited to 'rts/Hash.c')
-rw-r--r-- | rts/Hash.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rts/Hash.c b/rts/Hash.c index 6e1873ff29..39c5360f56 100644 --- a/rts/Hash.c +++ b/rts/Hash.c @@ -13,6 +13,19 @@ #include "Hash.h" #include "RtsUtils.h" + +/* This file needs to be compiled with vectorization enabled. Unfortunately + since we compile these things these days with cabal we can no longer + specify optimization per file. So we have to resort to pragmas. */ +#if defined(__GNUC__) || defined(__GNUG__) +#pragma GCC push_options +#pragma GCC optimize ("O3") +#endif + +#define XXH_NAMESPACE __rts_ +#define XXH_STATIC_LINKING_ONLY /* access advanced declarations */ +#define XXH_PRIVATE_API + #include "xxhash.h" #include <string.h> |