Skip to content

Commit 0cab455

Browse files
committed
[libc][fenv] Use trivial place-holder implementation for i386 in FEnvImpl.h
until it's fully supported.
1 parent d8a0709 commit 0cab455

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/src/__support/FPUtil/FEnvImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// The extra !defined(APPLE) condition is to cause x86_64 MacOS builds to use
2828
// the dummy implementations below. Once a proper x86_64 darwin fenv is set up,
2929
// the apple condition here should be removed.
30-
#elif defined(LIBC_TARGET_ARCH_IS_X86) && !defined(__APPLE__)
30+
#elif defined(LIBC_TARGET_ARCH_IS_X86_64) && !defined(__APPLE__)
3131
#include "x86_64/FEnvImpl.h"
3232
#elif defined(LIBC_TARGET_ARCH_IS_ARM) && defined(__ARM_FP)
3333
#include "arm/FEnvImpl.h"

libc/test/UnitTest/FEnvSafeTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void FEnvSafeTest::expect_fenv_eq(const fenv_t &before_fenv,
4545
EXPECT_EQ(before_state.ControlWord, after_state.ControlWord);
4646
EXPECT_EQ(before_state.StatusWord, after_state.StatusWord);
4747

48-
#elif defined(LIBC_TARGET_ARCH_IS_X86) && !defined(__APPLE__)
48+
#elif defined(LIBC_TARGET_ARCH_IS_X86_64) && !defined(__APPLE__)
4949
using LIBC_NAMESPACE::fputil::internal::FPState;
5050
const FPState &before_state = reinterpret_cast<const FPState &>(before_fenv);
5151
const FPState &after_state = reinterpret_cast<const FPState &>(after_fenv);

0 commit comments

Comments
 (0)