mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-02 04:20:28 +08:00
libm: Make tgamma(-small) = -INFINITY
Need to copy the argument sign to the output for tgamma(finite) overflow case. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
b7c1137941
commit
2bd71cbf91
@ -331,7 +331,7 @@ static double zero = 0.0; /* used as const */
|
||||
case 40:
|
||||
case 140:
|
||||
/* gamma(finite) overflow */
|
||||
retval = HUGE_VAL;
|
||||
retval = copysign(HUGE_VAL, x);
|
||||
errno = ERANGE;
|
||||
break;
|
||||
case 41:
|
||||
|
Loading…
x
Reference in New Issue
Block a user