| Submitter | Riku Voipio |
|---|---|
| Date | March 26, 2010, 4:07 p.m. |
| Message ID | <0e4e5d3cfce2e3c3bdf16ae84ae65216ba321094.1269617187.git.riku.voipio@nokia.com> |
| Download | mbox | patch |
| Permalink | /patch/48682/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/target-arm/helper.c b/target-arm/helper.c index 798e9f9..1f5f307 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -2687,8 +2687,9 @@ float32 HELPER(recps_f32)(float32 a, float32 b, CPUState *env) float32 HELPER(rsqrts_f32)(float32 a, float32 b, CPUState *env) { float_status *s = &env->vfp.fp_status; + float32 two = int32_to_float32(2, s); float32 three = int32_to_float32(3, s); - return float32_sub(three, float32_mul(a, b, s), s); + return float32_div(float32_sub(three, float32_mul(a, b, s), s), two, s); } /* NEON helpers. */