Skip to contentSkip to conversation

softfloat: Fix tp init in float32_exp2

PATCH In review Richard Henderson 2 participants 2 messages Jun 7, 2021 – Jun 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 softfloat: Fix tp init in float32_exp2

Typo in the conversion to FloatParts64.

Fixes 572c4d862ff2
Fixes Coverity CID 1457457
---
 fpu/softfloat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fpu/softfloat.c +1 -1
index 1cb162882b..4d0160fe9c 100644
@@ -4818,7 +4818,7 @@ float32 float32_exp2(float32 a, float_status *status)
 
     float_raise(float_flag_inexact, status);
 
-    float64_unpack_canonical(&xnp, float64_ln2, status);
+    float64_unpack_canonical(&tp, float64_ln2, status);
     xp = *parts_mul(&xp, &tp, status);
     xnp = xp;
 
Signature · 1 line
2.25.1