projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfce6d8
)
rsqrte_f32: No need to copy sign bit.
author
Christophe LYON
<christophe.lyon@st.com>
Wed, 19 Oct 2011 16:14:05 +0000
(16:14 +0000)
committer
Peter Maydell
<peter.maydell@linaro.org>
Wed, 19 Oct 2011 16:14:05 +0000
(16:14 +0000)
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>
target-arm/helper.c
patch
|
blob
|
history
diff --git
a/target-arm/helper.c
b/target-arm/helper.c
index e2428eb7b2716564743efed40ad1b9fe5ebc4859..17ef98b68747c857aa00ce8680bf6d1c20ebad12 100644
(file)
--- a/
target-arm/helper.c
+++ b/
target-arm/helper.c
@@
-3039,8
+3039,7
@@
float32 HELPER(rsqrte_f32)(float32 a, CPUState *env)
val64 = float64_val(f64);
- val = ((val64 >> 63) & 0x80000000)
- | ((result_exp & 0xff) << 23)
+ val = ((result_exp & 0xff) << 23)
| ((val64 >> 29) & 0x7fffff);
return make_float32(val);
}