diff mbox series

[uclibc-ng-devel] libm/w_j0f.c: Call correct ieee754 function

Message ID 20240303211216.1879-1-marcus.haehnel@kernkonzept.com
State Accepted
Headers show
Series [uclibc-ng-devel] libm/w_j0f.c: Call correct ieee754 function | expand

Commit Message

Marcus Haehnel March 3, 2024, 9:12 p.m. UTC
The j0f implementation should, like the other float implementations,
call the __ieee754_y0 variant for doubles. A float variant is not
declared and leads to a compile error on c99 builds.
---
 libm/w_j0f.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Waldemar Brodkorb March 5, 2024, 11:01 a.m. UTC | #1
Hi Marcus,
Marcus Haehnel wrote,

> The j0f implementation should, like the other float implementations,
> call the __ieee754_y0 variant for doubles. A float variant is not
> declared and leads to a compile error on c99 builds.

Applied and pushed,
 thx
  Waldemar
diff mbox series

Patch

diff --git a/libm/w_j0f.c b/libm/w_j0f.c
index 89821bc98..496e098cd 100644
--- a/libm/w_j0f.c
+++ b/libm/w_j0f.c
@@ -63,6 +63,6 @@  y0f (float x)
 	return __kernel_standard_f (x, x, 135);
     }
 # endif /* __UCLIBC_HAS_FENV__ */
-  return (float) __ieee754_y0f ((double) x);
+  return (float) __ieee754_y0 ((double) x);
 }
 #endif /* __DO_XSI_MATH__ */