2007-10-17 Jeff Johnston <jjohnstn@redhat.com>
* libm/mathfp/s_logarithm.c: Fix case where input is 0 to return -inf. * libm/mathfp/sf_logarithm.c: Ditto.
This commit is contained in:
parent
ec828b8bf1
commit
923f9573a3
|
@ -1,3 +1,9 @@
|
|||
2007-10-17 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* libm/mathfp/s_logarithm.c: Fix case where input is 0 to
|
||||
return -inf.
|
||||
* libm/mathfp/sf_logarithm.c: Ditto.
|
||||
|
||||
2007-10-17 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* libc/machine/i386/machine/fastmath.h: New file.
|
||||
|
|
|
@ -104,7 +104,7 @@ _DEFUN (logarithm, (double, int),
|
|||
if (x <= 0.0)
|
||||
{
|
||||
errno = ERANGE;
|
||||
return (z_notanum.d);
|
||||
return (-z_infinity.d);
|
||||
}
|
||||
|
||||
/* Get the exponent and mantissa where x = f * 2^N. */
|
||||
|
|
|
@ -42,7 +42,7 @@ _DEFUN (logarithmf, (float, int),
|
|||
if (x <= 0.0)
|
||||
{
|
||||
errno = ERANGE;
|
||||
return (z_notanum_f.f);
|
||||
return (-z_infinity_f.f);
|
||||
}
|
||||
|
||||
/* Get the exponent and mantissa where x = f * 2^N. */
|
||||
|
|
Loading…
Reference in New Issue