From 1ed15161362b2eb5649b049b7ab0aaf8097bd43a Mon Sep 17 00:00:00 2001 From: Pietro Monteiro Date: Mon, 3 Jun 2024 21:35:47 -0400 Subject: 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 --- newlib/libm/complex/csinhl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'newlib/libm/complex/csinhl.c') 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 #include +/* 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 -- cgit v1.1