[PATCH] D35188: Add bitreverse LNT benchmark.
Hal Finkel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 14 10:34:47 PDT 2017
hfinkel added inline comments.
================
Comment at: SingleSource/Benchmarks/Misc/revertBits.c:37
+
+#if (!__has_builtin(__builtin_bitreverse32) ||\
+ !__has_builtin(__builtin_bitreverse64))
----------------
You need to put:
#ifndef __has_builtin
#define __has_builtin(x) 0
#endif
before this (or else this won't work with compilers that don't support __has_builtin).
https://reviews.llvm.org/D35188
More information about the llvm-commits
mailing list