mirror of https://github.com/xemu-project/xemu.git
rsqrte_f32: No need to copy sign bit.
Indeed, the result is known to be always positive. Signed-off-by: Christophe Lyon <christophe.lyon@st.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
cfce6d8934
commit
26cc6abf61
|
@ -3039,8 +3039,7 @@ float32 HELPER(rsqrte_f32)(float32 a, CPUState *env)
|
||||||
|
|
||||||
val64 = float64_val(f64);
|
val64 = float64_val(f64);
|
||||||
|
|
||||||
val = ((val64 >> 63) & 0x80000000)
|
val = ((result_exp & 0xff) << 23)
|
||||||
| ((result_exp & 0xff) << 23)
|
|
||||||
| ((val64 >> 29) & 0x7fffff);
|
| ((val64 >> 29) & 0x7fffff);
|
||||||
return make_float32(val);
|
return make_float32(val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue