Skip to content

Commit afeb503

Browse files
committed
Fix x87-only detection.
1 parent 327bb75 commit afeb503

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc/src/__support/FPUtil/x86_64/FEnvImpl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
#error "Invalid include"
2525
#endif
2626

27-
#ifndef __SSE__
27+
#if (defined(__i386__) && !defined(__SSE__)) || \
28+
(defined(_M_IX86_FP) && (_M_IX86_FP == 0))
2829
// When SSE is not available, we will only touch x87 floating point environment.
2930
#include "src/__support/FPUtil/x86_64/fenv_x87_only.h"
3031
#else // __SSE__

0 commit comments

Comments
 (0)