[libc-commits] [libc] [llvm] [libc][math] Improve atanf performance. (PR #85463)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Mon Mar 18 16:01:38 PDT 2024


================
@@ -53,8 +53,9 @@ TEST_F(LlvmLibcAtanfTest, InFloatRange) {
 
 // For small values, tanh(x) is x.
 TEST_F(LlvmLibcAtanfTest, SpecialValues) {
-  uint32_t val_arr[] = {0x3d8d6b23U, 0x3feefcfbU, 0xbd8d6b23U,
-                        0xbfeefcfbU, 0x7F800000U, 0xFF800000U};
+  uint32_t val_arr[] = {
+      0x3d8d6b23U, 0x3feefcfbU, 0xbd8d6b23U, 0xbfeefcfbU,
+      0x7F800000U, 0xFF800000U, 0xbffe2ec1U /*-0x1.fc5d82p+0*/};
----------------
nickdesaulniers wrote:

What's up with this commented out value? Did you mean to include it in the array, or is it meant to mean something else?

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


More information about the libc-commits mailing list