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

clang 9 now provides _rotr and _rotl.
This commit is contained in:
orbea 2019-09-29 19:30:47 +00:00 committed by Jonathan Li
parent 45687cd51a
commit d943870413

View File

@ -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)
{