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:
Jeff Johnston 2005-09-01 17:53:02 +00:00
parent 45c8bb8f8c
commit cebe43dd76
3 changed files with 12 additions and 4 deletions

View File

@ -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>
* configure.host: Set have_crt0 to no for Arm targts when not

View File

@ -75,9 +75,10 @@ double pow (double x, double y)
}
}
if (x == 0.0 && y <= 0.0)
if (x == 0.0)
{
errno = EDOM;
if (y <= 0.0)
errno = EDOM;
}
else if ((t = y * log (fabs (x))) >= BIGX)
{

View File

@ -29,9 +29,10 @@ float powf (float x, float y)
}
}
if (x == 0.0 && y <= 0.0)
if (x == 0.0)
{
errno = EDOM;
if (y <= 0.0)
errno = EDOM;
}
else if ((t = y * log (fabsf (x))) >= BIGX)
{