Skip to content

Commit

Permalink
softfloat: Fix tp init in float32_exp2
Browse files Browse the repository at this point in the history
Typo in the conversion to FloatParts64.

Fixes: 572c4d8
Fixes: Coverity CID 1457457
Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Alex Bennée <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
  • Loading branch information
rth7680 committed Jun 14, 2021
1 parent c372565 commit f291f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fpu/softfloat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f291f45

Please sign in to comment.