aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm/complex/csinhl.c
diff options
context:
space:
mode:
authorPietro Monteiro <pietro@sociotechnical.xyz>2024-06-03 21:35:47 -0400
committerJeff Johnston <jjohnstn@redhat.com>2024-06-06 13:19:06 -0400
commit1ed15161362b2eb5649b049b7ab0aaf8097bd43a (patch)
treea0ffc521e2ed7e8df50ec8f24b4ae92733351bb0 /newlib/libm/complex/csinhl.c
parent10b921681108b333d17d8438a45afe6fbc1169dd (diff)
downloadnewlib-1ed15161362b2eb5649b049b7ab0aaf8097bd43a.zip
newlib-1ed15161362b2eb5649b049b7ab0aaf8097bd43a.tar.gz
newlib-1ed15161362b2eb5649b049b7ab0aaf8097bd43a.tar.bz2
newlib: libm: skip "long double" complex functions if long double != double
The rest of "long double" functions aren't compiled with long double and double are not the same. Do the same for all complex functions. Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
Diffstat (limited to 'newlib/libm/complex/csinhl.c')
-rw-r--r--newlib/libm/complex/csinhl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libm/complex/csinhl.c b/newlib/libm/complex/csinhl.c
index 44ed050..3187739 100644
--- a/newlib/libm/complex/csinhl.c
+++ b/newlib/libm/complex/csinhl.c
@@ -32,6 +32,8 @@
#include <complex.h>
#include <math.h>
+/* On platforms where long double is as wide as double. */
+#ifdef _LDBL_EQ_DBL
long double complex
csinhl(long double complex z)
{
@@ -43,3 +45,4 @@ csinhl(long double complex z)
w = sinhl(x) * cosl(y) + (coshl(x) * sinl(y)) * I;
return w;
}
+#endif