Skip to content

Commit

Permalink
common: Fix build error with clang 9. (#3123)
Browse files Browse the repository at this point in the history
clang 9 now provides _rotr and _rotl.
  • Loading branch information
orbea authored and turtleli committed Sep 29, 2019
1 parent 45687cd commit d943870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/include/x86emitter/x86_intrin.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static __inline__ __attribute__((always_inline)) unsigned long long xgetbv(unsig
#endif #endif


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

0 comments on commit d943870

Please sign in to comment.