Skip to content

Commit 7c6e92c

Browse files
LebedevRIsteven-johnson
authored andcommitted
apps/linear_algebra/benchmarks/macros.h: don't forget SSE guard (#6471)
This is breaking i386 build: https://buildd.debian.org/status/fetch.php?pkg=halide&arch=i386&ver=13.0.1-3&stamp=1638786518&raw=0
1 parent fb39d7e commit 7c6e92c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/linear_algebra/benchmarks/macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#include "halide_benchmark.h"
22

33
#ifdef ENABLE_FTZ_DAZ
4-
#if defined(__i386__) || defined(__x86_64__)
4+
#if (defined(__i386__) || defined(__x86_64__)) && defined(__SSE__)
55
#include <pmmintrin.h>
66
#include <xmmintrin.h>
7-
#endif // defined(__i386__) || defined(__x86_64__)
7+
#endif // (defined(__i386__) || defined(__x86_64__)) && defined(__SSE__)
88
#endif
99

1010
inline void set_math_flags() {
1111
#ifdef ENABLE_FTZ_DAZ
1212

13-
#if defined(__i386__) || defined(__x86_64__)
13+
#if (defined(__i386__) || defined(__x86_64__)) && defined(__SSE__)
1414
// Flush denormals to zero (the FTZ flag).
1515
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
1616
// Interpret denormal inputs as zero (the DAZ flag).

0 commit comments

Comments
 (0)