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/cpowl.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/cpowl.c')
-rw-r--r-- | newlib/libm/complex/cpowl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libm/complex/cpowl.c b/newlib/libm/complex/cpowl.c index 85c2c20..46dfd13 100644 --- a/newlib/libm/complex/cpowl.c +++ b/newlib/libm/complex/cpowl.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 cpowl(long double complex a, long double complex z) { @@ -54,3 +56,4 @@ cpowl(long double complex a, long double complex z) w = r * cosl(theta) + (r * sinl(theta)) * I; return w; } +#endif |