diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-03-13 10:09:33 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-03-13 10:09:33 +0100 |
commit | 59f1846249fbbb76e786d1e73e9be5c72a41fefb (patch) | |
tree | 653e7ea26a961ece507659c78a349e8412ced0ae /erts/emulator/beam/erl_map.h | |
parent | b398819d59863db76fc2ce2f0c1584254e38f3bb (diff) | |
download | otp-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.h | 2 |
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 |