aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_map.h
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-03-13 10:09:33 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-03-13 10:09:33 +0100
commit59f1846249fbbb76e786d1e73e9be5c72a41fefb (patch)
tree653e7ea26a961ece507659c78a349e8412ced0ae /erts/emulator/beam/erl_map.h
parentb398819d59863db76fc2ce2f0c1584254e38f3bb (diff)
downloadotp-59f1846249fbbb76e786d1e73e9be5c72a41fefb.tar.gz
otp-59f1846249fbbb76e786d1e73e9be5c72a41fefb.tar.bz2
otp-59f1846249fbbb76e786d1e73e9be5c72a41fefb.zip
erts: Restrict GCC intrinsics by compiler version
Intrinsics __builtin_clz and __builtin_popcount are only valid on GCC version 3.4 and above.
Diffstat (limited to 'erts/emulator/beam/erl_map.h')
-rw-r--r--erts/emulator/beam/erl_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_map.h b/erts/emulator/beam/erl_map.h
index ff5e6edd1e..d075d87c83 100644
--- a/erts/emulator/beam/erl_map.h
+++ b/erts/emulator/beam/erl_map.h
@@ -24,7 +24,7 @@
#include "sys.h"
/* instrinsic wrappers */
-#if defined(__GNUC__)
+#if ERTS_AT_LEAST_GCC_VSN__(3, 4, 0)
#define hashmap_clz(x) ((Uint32) __builtin_clz((unsigned int)(x)))
#define hashmap_bitcount(x) ((Uint32) __builtin_popcount((unsigned int) (x)))
#else