[libc] [llvm] [APFloat] Add exp function for APFloat::IEEESsingle using expf implementation from LLVM libc. (PR #143959)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 13 17:49:57 PDT 2025
================
@@ -109,6 +109,18 @@ static constexpr float expf(float x) {
return static_cast<float>(exp_hi * exp_mid * exp_lo);
}
+// Directional rounding version of expf.
+LIBC_INLINE static float expf(float x, int rounding_mode) {
+ int current_rounding_mode = fputil::get_round();
----------------
arsenm wrote:
Use the pragma to enable fenv_access?
https://github.com/llvm/llvm-project/pull/143959
More information about the llvm-commits
mailing list