From: Paul Zimmermann Date: Fri, 10 Oct 2025 08:05:29 +0000 (+0200) Subject: replace use of double by float [BZ#29326] X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea5b996be96626d6a69f70fa665ca2d1eb8e0c22;p=thirdparty%2Fglibc.git replace use of double by float [BZ#29326] --- diff --git a/sysdeps/ieee754/flt-32/e_sqrtf.c b/sysdeps/ieee754/flt-32/e_sqrtf.c index 1c0245b733..0e29375786 100644 --- a/sysdeps/ieee754/flt-32/e_sqrtf.c +++ b/sysdeps/ieee754/flt-32/e_sqrtf.c @@ -72,10 +72,10 @@ __ieee754_sqrtf(float x) /* use floating add to find out rounding direction */ if(ix!=0) { - z = 0x1p0 - 0x1.4484cp-100; /* trigger inexact flag. */ - if (z >= 0x1p0) { - z = 0x1p0 + 0x1.4484cp-100; - if (z > 0x1p0) + z = 0x1p0f - 0x1.4484cp-100f; /* trigger inexact flag. */ + if (z >= 0x1p0f) { /* rounding to nearest or upward */ + z = 0x1p0f + 0x1.4484cp-100f; + if (z > 0x1p0f) /* rounding upward */ q += 2; else q += (q&1);