Merge pull request #1 from jserv/fix-build

Fix build with GCC prior to 10
This commit is contained in:
Dmitry Stogov 2022-11-11 15:23:27 +03:00 committed by GitHub
commit 6fdce28d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,8 @@
# endif
#elif defined(_WIN32)
# define IR_SET_ALIGNED(alignment, decl) __declspec(align(alignment)) decl
#else /* GCC prior to 10 or non-clang/msvc compilers */
#define __has_builtin(x) 0
#endif
#ifndef EXPECTED
# define EXPECTED(condition) (condition)
@ -210,7 +212,7 @@ IR_ALWAYS_INLINE int ir_nlzl(uint64_t num)
return (int) (64 - 1) - index;
#else
uint64_t x;
uint65_t n;
uint64_t n;
n = 64;
x = num >> 32; if (x != 0) {n -= 32; num = x;}