diff options
author | Pietro Monteiro <pietro@sociotechnical.xyz> | 2024-06-03 21:35:47 -0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2024-06-06 13:19:06 -0400 |
commit | 1ed15161362b2eb5649b049b7ab0aaf8097bd43a (patch) | |
tree | a0ffc521e2ed7e8df50ec8f24b4ae92733351bb0 /newlib/libm/complex/ccosl.c | |
parent | 10b921681108b333d17d8438a45afe6fbc1169dd (diff) | |
download | newlib-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/ccosl.c')
-rw-r--r-- | newlib/libm/complex/ccosl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libm/complex/ccosl.c b/newlib/libm/complex/ccosl.c index c310f40..a7619f3 100644 --- a/newlib/libm/complex/ccosl.c +++ b/newlib/libm/complex/ccosl.c @@ -33,6 +33,8 @@ #include <math.h> #include "cephes_subrl.h" +/* On platforms where long double is as wide as double. */ +#ifdef _LDBL_EQ_DBL long double complex ccosl(long double complex z) { @@ -43,3 +45,4 @@ ccosl(long double complex z) w = cosl(creall(z)) * ch - (sinl(creall(z)) * sh) * I; return w; } +#endif |