From ea5b996be96626d6a69f70fa665ca2d1eb8e0c22 Mon Sep 17 00:00:00 2001 From: Paul Zimmermann Date: Fri, 10 Oct 2025 10:05:29 +0200 Subject: [PATCH] replace use of double by float [BZ#29326] --- sysdeps/ieee754/flt-32/e_sqrtf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sysdeps/ieee754/flt-32/e_sqrtf.c b/sysdeps/ieee754/flt-32/e_sqrtf.c index 1c0245b7333..0e29375786c 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); -- 2.47.3