We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c56b965 commit 98fb0d0Copy full SHA for 98fb0d0
libc/src/__support/math/expf.h
@@ -109,6 +109,8 @@ static constexpr float expf(float x) {
109
return static_cast<float>(exp_hi * exp_mid * exp_lo);
110
}
111
112
+#pragma STDC FENV_ACCESS ON
113
+
114
// Directional rounding version of expf.
115
LIBC_INLINE static float expf(float x, int rounding_mode) {
116
int current_rounding_mode = fputil::get_round();
@@ -121,6 +123,8 @@ LIBC_INLINE static float expf(float x, int rounding_mode) {
121
123
return result;
122
124
125
126
+#pragma STDC FENV_ACCESS DEFAULT
127
128
} // namespace math
129
130
} // namespace LIBC_NAMESPACE_DECL
0 commit comments