Skip to content

Commit 7c53723

Browse files
[libc] fix woa64 fenv implementation
1 parent cb61a5e commit 7c53723

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626

2727
namespace LIBC_NAMESPACE_DECL {
2828
namespace fputil {
29-
29+
#pragma push_macro("OVERFLOW")
30+
#undef OVERFLOW
31+
#pragma push_macro("UNDERFLOW")
32+
#undef UNDERFLOW
3033
struct FEnv {
3134
struct FPState {
3235
uint32_t ControlWord;
@@ -279,6 +282,8 @@ LIBC_INLINE int set_env(const fenv_t *envp) {
279282
return 0;
280283
}
281284

285+
#pragma pop_macro("UNDERFLOW")
286+
#pragma pop_macro("OVERFLOW")
282287
} // namespace fputil
283288
} // namespace LIBC_NAMESPACE_DECL
284289

0 commit comments

Comments
 (0)