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/cexpl.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/cexpl.c')
-rw-r--r-- | newlib/libm/complex/cexpl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libm/complex/cexpl.c b/newlib/libm/complex/cexpl.c index 8b56634..24fb40a 100644 --- a/newlib/libm/complex/cexpl.c +++ b/newlib/libm/complex/cexpl.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 cexpl(long double complex z) { @@ -44,3 +46,4 @@ cexpl(long double complex z) w = r * cosl(y) + r * sinl(y) * I; return w; } +#endif |