mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
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>
|
||||
|
||||
* configure.host: Set have_crt0 to no for Arm targts when not
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user