[libc-commits] [libc] [libc][math][c++23] Add next{after, down, toward, up}bf16 math functions (PR #153993)

via libc-commits libc-commits at lists.llvm.org
Wed Aug 20 10:27:03 PDT 2025


================
@@ -3660,6 +3660,19 @@ add_fp_unittest(
     libc.src.__support.FPUtil.fp_bits
 )
 
+add_fp_unittest(
+  nextafterbf16_test
+  SUITE
+    libc-math-smoke-tests
+  SRCS
+    nextafterbf16_test.cpp
+  HDRS
+    NextUpTest.h
+  DEPENDS
+    libc.src.math.nextafterbf16
+    libc.src.__support.FPUtil.bfloat16
----------------
overmighty wrote:

```suggestion
  DEPENDS
    libc.hdr.fenv_macros
    libc.src.math.nextafterbf16
    libc.src.__support.CPP.bit
    libc.src.__support.FPUtil.bfloat16
    libc.src.__support.FPUtil.fenv_impl
    libc.src.__support.FPUtil.fp_bits
```

https://github.com/llvm/llvm-project/pull/153993


More information about the libc-commits mailing list