[libc-commits] [libc] [libc][math][c23] Add nextup{, f, f128} and nextdown{, f, f128} functions (PR #85431)
via libc-commits
libc-commits at lists.llvm.org
Fri Mar 15 11:53:20 PDT 2024
================
@@ -230,6 +230,27 @@ LIBC_INLINE T nextafter(T from, U to) {
return from_bits.get_val();
}
+template <typename T, cpp::enable_if_t<cpp::is_floating_point_v<T>, int> = 0>
+LIBC_INLINE T nextupdown(T x, Sign sign) {
----------------
overmighty wrote:
I added a `bool IsDown` as first template parameter. Adding it after `T` would prevent deduction for `T`.
https://github.com/llvm/llvm-project/pull/85431
More information about the libc-commits
mailing list