[libc-commits] [libc] [libc][math] Add scalbln{, f, l, f128} math functions (PR #102219)

via libc-commits libc-commits at lists.llvm.org
Thu Aug 8 10:18:19 PDT 2024


================
@@ -3618,6 +3618,51 @@ add_fp_unittest(
     libc.src.math.atan2
 )
 
+add_fp_unittest(
+  scalbln_test
+  SUITE
+    libc-math-smoke-tests
+  SRCS
+    scalbln_test.cpp
+  HDRS
+    ScalbnTest.h
+  DEPENDS
+    libc.src.math.scalbln
+    libc.src.__support.CPP.limits
+    libc.src.__support.FPUtil.fp_bits
+    libc.src.__support.FPUtil.normal_float
+)
+
+add_fp_unittest(
+  scalblnf_test
+  SUITE
+    libc-math-smoke-tests
+  SRCS
+    scalblnf_test.cpp
+  HDRS
+    ScalbnTest.h
+  DEPENDS
+    libc.src.math.scalblnf
+    libc.src.__support.FPUtil.fp_bits
+    libc.src.__support.CPP.limits
+    libc.src.__support.FPUtil.normal_float
+)
----------------
overmighty wrote:

Nit: sorting.

```suggestion
  DEPENDS
    libc.src.math.scalblnf
    libc.src.__support.CPP.limits
    libc.src.__support.FPUtil.fp_bits
    libc.src.__support.FPUtil.normal_float
)
```


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


More information about the libc-commits mailing list