mirror of
https://git.wownero.com/wownero/RandomWOW.git
synced 2025-01-03 05:38:54 +00:00
Fixed clang compilation
This commit is contained in:
parent
df9180a30b
commit
58ae98c6a4
@ -29,6 +29,14 @@
|
|||||||
#define ror64 __rorq
|
#define ror64 __rorq
|
||||||
#define rol64 __rolq
|
#define rol64 __rolq
|
||||||
#define forceinline inline
|
#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)
|
#elif defined(_MSC_VER) && defined(_M_X64)
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user