mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Avoid overflows from long double functions using __kernel_standard.
This commit is contained in:
@@ -25,7 +25,7 @@ long double
|
||||
__sqrtl (long double x)
|
||||
{
|
||||
if (__builtin_expect (isless (x, 0.0L), 0) && _LIB_VERSION != _IEEE_)
|
||||
return __kernel_standard (x, x, 226); /* sqrt(negative) */
|
||||
return __kernel_standard_l (x, x, 226); /* sqrt(negative) */
|
||||
|
||||
return __ieee754_sqrtl (x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user