z3: fix build on armv*.
This commit is contained in:
parent
f6d40ada3f
commit
abfbeca7b7
1 changed files with 11 additions and 0 deletions
11
srcpkgs/z3/patches/mpz.patch
Normal file
11
srcpkgs/z3/patches/mpz.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/util/mpz.cpp.orig
|
||||
+++ src/util/mpz.cpp
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
#if defined(_WINDOWS) && !defined(_M_ARM) && !defined(_M_ARM64)
|
||||
// _trailing_zeros32 already defined using intrinsics
|
||||
-#else
|
||||
+#elif !defined(__GNUC__)
|
||||
inline uint32_t _trailing_zeros32(uint32_t x) {
|
||||
uint32_t r = 0;
|
||||
for (; 0 == (x & 1) && r < 32; ++r, x >>= 1);
|
Loading…
Reference in a new issue