2005-09-01 Jeff Johnston <jjohnstn@redhat.com>
* libm/mathfp/s_pow.c: (pow): Change code so 0 raised to any positive power results in 0. * libm/mathfp/sf_pow.c (powf): Ditto.
This commit is contained in:
parent
45c8bb8f8c
commit
cebe43dd76
|
@ -1,3 +1,9 @@
|
||||||
|
2005-09-01 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
|
* libm/mathfp/s_pow.c: (pow): Change code so 0 raised to
|
||||||
|
any positive power results in 0.
|
||||||
|
* libm/mathfp/sf_pow.c (powf): Ditto.
|
||||||
|
|
||||||
2005-08-31 Paul Brook <paul@codesourcery.com>
|
2005-08-31 Paul Brook <paul@codesourcery.com>
|
||||||
|
|
||||||
* configure.host: Set have_crt0 to no for Arm targts when not
|
* configure.host: Set have_crt0 to no for Arm targts when not
|
||||||
|
|
|
@ -75,8 +75,9 @@ double pow (double x, double y)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x == 0.0 && y <= 0.0)
|
if (x == 0.0)
|
||||||
{
|
{
|
||||||
|
if (y <= 0.0)
|
||||||
errno = EDOM;
|
errno = EDOM;
|
||||||
}
|
}
|
||||||
else if ((t = y * log (fabs (x))) >= BIGX)
|
else if ((t = y * log (fabs (x))) >= BIGX)
|
||||||
|
|
|
@ -29,8 +29,9 @@ float powf (float x, float y)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x == 0.0 && y <= 0.0)
|
if (x == 0.0)
|
||||||
{
|
{
|
||||||
|
if (y <= 0.0)
|
||||||
errno = EDOM;
|
errno = EDOM;
|
||||||
}
|
}
|
||||||
else if ((t = y * log (fabsf (x))) >= BIGX)
|
else if ((t = y * log (fabsf (x))) >= BIGX)
|
||||||
|
|
Loading…
Reference in New Issue