mirror of
https://github.com/Z3Prover/z3
synced 2025-06-02 12:21:21 +00:00
Fix gcc build failure on ARM caused by including <emmintrin.h>
src/util/hwf.cpp tries to use <emmintrin.h> to directly use SSE intrinsics. Make sure to only use those when actually on x86 or x86_64.
This commit is contained in:
parent
5285a795ac
commit
fa598edf43
1 changed files with 5 additions and 2 deletions
|
@ -29,7 +29,8 @@ Revision History:
|
||||||
#include<fenv.h>
|
#include<fenv.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _M_IA64
|
#if defined(__x86_64__) || defined(_M_X64) || \
|
||||||
|
defined(__i386) || defined(_M_IX86)
|
||||||
#define USE_INTRINSICS
|
#define USE_INTRINSICS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -47,7 +48,9 @@ Revision History:
|
||||||
// Luckily, these are kind of standardized, at least for Windows/Linux/OSX.
|
// Luckily, these are kind of standardized, at least for Windows/Linux/OSX.
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#undef USE_INTRINSICS
|
#undef USE_INTRINSICS
|
||||||
#else
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_INTRINSICS
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue