aboutsummaryrefslogtreecommitdiff
path: root/lib/msun/src/s_cpow.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/src/s_cpow.c')
-rw-r--r--lib/msun/src/s_cpow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/msun/src/s_cpow.c b/lib/msun/src/s_cpow.c
index cdc57bd4677d..2c20a8f3b48b 100644
--- a/lib/msun/src/s_cpow.c
+++ b/lib/msun/src/s_cpow.c
@@ -43,9 +43,6 @@
*
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <complex.h>
#include <float.h>
#include <math.h>
@@ -61,7 +58,10 @@ cpow(double complex a, double complex z)
y = cimag (z);
absa = cabs (a);
if (absa == 0.0) {
- return (CMPLX(0.0, 0.0));
+ if (x == 0 && y == 0)
+ return (CMPLX(1., 0.));
+ else
+ return (CMPLX(0., 0.));
}
arga = carg (a);
r = pow (absa, x);