[libc-commits] [libc] [llvm] [libc][math] Implement double precision sinh correctly rounded for all rounding modes. (PR #235097)
via libc-commits
libc-commits at lists.llvm.org
Sat Oct 24 11:16:39 PDT 2026
================
@@ -67,6 +67,24 @@ LIBC_INLINE constexpr NumberPair<T> exact_add(T a, T b) {
return r;
}
+template <bool FAST2SUM = true, typename T = double>
+LIBC_INLINE constexpr NumberPair<T> exact_sub(T a, T b) {
+ NumberPair<T> r{0.0, 0.0};
----------------
Sukumarsawant wrote:
could we use T(0.0) here instead ?
Like, there were issues with the type conversion previously when I was working with the float128 function where a template not having those conversion would fail.
I don't know if this could cause same issue in future here.
https://github.com/llvm/llvm-project/pull/235097
More information about the libc-commits
mailing list