diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-03-12 22:02:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-12 22:02:18 +0100 |
commit | 36a414eb03608dcef1444230e1c29790bde9c949 (patch) | |
tree | 6c5147f6beae3e21fcb6af35ca131ced4b418811 /core/math/random_pcg.h | |
parent | 3c376a898ae6f4b6332d732d29c44d090978b887 (diff) | |
parent | 1c2f2a805d99c92e0a8b72dae462018b0bd277c4 (diff) | |
download | redot-engine-36a414eb03608dcef1444230e1c29790bde9c949.tar.gz |
Merge pull request #36994 from akien-mga/typedefs-cleanup
typedefs: Cleanup unused macros and unnecessary checks
Diffstat (limited to 'core/math/random_pcg.h')
-rw-r--r-- | core/math/random_pcg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/math/random_pcg.h b/core/math/random_pcg.h index ac65ce3509..8fd5a056fa 100644 --- a/core/math/random_pcg.h +++ b/core/math/random_pcg.h @@ -37,10 +37,10 @@ #include "thirdparty/misc/pcg.h" -#if defined(__GNUC__) || (_llvm_has_builtin(__builtin_clz)) +#if defined(__GNUC__) #define CLZ32(x) __builtin_clz(x) #elif defined(_MSC_VER) -#include "intrin.h" +#include <intrin.h> static int __bsr_clz32(uint32_t x) { unsigned long index; _BitScanReverse(&index, x); @@ -50,11 +50,11 @@ static int __bsr_clz32(uint32_t x) { #else #endif -#if defined(__GNUC__) || (_llvm_has_builtin(__builtin_ldexp) && _llvm_has_builtin(__builtin_ldexpf)) +#if defined(__GNUC__) #define LDEXP(s, e) __builtin_ldexp(s, e) #define LDEXPF(s, e) __builtin_ldexpf(s, e) #else -#include "math.h" +#include <math.h> #define LDEXP(s, e) ldexp(s, e) #define LDEXPF(s, e) ldexp(s, e) #endif |