mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Fix exp10 errno setting on underflow (bug 6787).
This commit is contained in:
@ -28,7 +28,7 @@ float
|
||||
__exp10f (float x)
|
||||
{
|
||||
float z = __ieee754_exp10f (x);
|
||||
if (__builtin_expect (!__finitef (z), 0)
|
||||
if (__builtin_expect (!__finitef (z) || z == 0, 0)
|
||||
&& __finitef (x) && _LIB_VERSION != _IEEE_)
|
||||
/* exp10f overflow (146) if x > 0, underflow (147) if x < 0. */
|
||||
return __kernel_standard_f (x, x, 146 + !!__signbitf (x));
|
||||
|
Reference in New Issue
Block a user