Skip to content
Permalink
Browse files

common: Fix build error with clang 9. (#3123)

clang 9 now provides _rotr and _rotl.
  • Loading branch information...
orbea authored and turtleli committed Sep 29, 2019
1 parent 45687cd commit d943870413d7719d71ba4de61f1b35202f9a4529
Showing with 1 addition and 1 deletion.
  1. +1 −1 common/include/x86emitter/x86_intrin.h
@@ -68,7 +68,7 @@ static __inline__ __attribute__((always_inline)) unsigned long long xgetbv(unsig
#endif

// Rotate instruction
#if defined(__clang__)
#if defined(__clang__) && __clang_major__ < 9
// Seriously what is so complicated to provided this bunch of intrinsics in clangs.
[[maybe_unused]] static unsigned int _rotr(unsigned int x, int s)
{

0 comments on commit d943870

Please sign in to comment.
You can’t perform that action at this time.