From 8965fda4024ee72b6f22d940c97a4f91e08f4c27 Mon Sep 17 00:00:00 2001 From: gibbed Date: Mon, 20 Jun 2016 13:31:11 -0500 Subject: [PATCH] RSqrt for VEC128_TYPE. --- src/xenia/cpu/hir/value.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenia/cpu/hir/value.cc b/src/xenia/cpu/hir/value.cc index 7265d8bfe..998ee7514 100644 --- a/src/xenia/cpu/hir/value.cc +++ b/src/xenia/cpu/hir/value.cc @@ -618,6 +618,11 @@ void Value::RSqrt() { case FLOAT64_TYPE: constant.f64 = 1.0f / std::sqrt(constant.f64); break; + case VEC128_TYPE: + for (int i = 0; i < 4; ++i) { + constant.v128.f32[i] = 1.0f / std::sqrt(constant.v128.f32[i]); + } + break; default: assert_unhandled_case(type); break;