From 58ae98c6a4b9d3101379dbdd09e3e2b00c03c10f Mon Sep 17 00:00:00 2001 From: tevador Date: Wed, 14 Nov 2018 22:41:51 +0100 Subject: [PATCH] Fixed clang compilation --- tests/performance/benchmark.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/performance/benchmark.cpp b/tests/performance/benchmark.cpp index fa5fca1..6cb6fa3 100644 --- a/tests/performance/benchmark.cpp +++ b/tests/performance/benchmark.cpp @@ -29,6 +29,14 @@ #define ror64 __rorq #define rol64 __rolq #define forceinline inline + #ifdef __clang__ + static inline uint64_t __rolq(uint64_t a, int b) { + return (a << b) | (a >> (64 - b)); + } + static inline uint64_t __rorq(uint64_t a, int b) { + return (a >> b) | (a << (64 - b)); + } + #endif #elif defined(_MSC_VER) && defined(_M_X64) #include #include