summaryrefslogtreecommitdiffstats
path: root/src/util/bitscan.c
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-08-14 22:29:24 +0200
committerErik Faye-Lund <[email protected]>2019-09-02 12:45:45 +0000
commit2f82d972ab982a816009228ff62bd5c5434062ca (patch)
treee3b75970e71d246580ccba913a4f5451f5f2d2c2 /src/util/bitscan.c
parent1de9ba33a232c637121f5d2a5d0a43ff43fbb0b6 (diff)
util: only allow _BitScanReverse64 on 64-bit cpus
While the documentation for _BitScanReverse64 on MSDN says that it's available on ARM, this isn't true. It's only available on ARM64. So let's match reality. Signed-off-by: Erik Faye-Lund <[email protected]> Acked-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/util/bitscan.c')
-rw-r--r--src/util/bitscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/bitscan.c b/src/util/bitscan.c
index 7858291bf63..88d7f94e119 100644
--- a/src/util/bitscan.c
+++ b/src/util/bitscan.c
@@ -60,7 +60,7 @@ ffs(int i)
#endif
#ifdef HAVE___BUILTIN_FFSLL
-#elif defined(_MSC_VER) && (_M_AMD64 || _M_ARM || _M_IA64)
+#elif defined(_MSC_VER) && (_M_AMD64 || _M_ARM64 || _M_IA64)
#else
int
ffsll(long long int val)