diff options
author | bunnei <bunneidev@gmail.com> | 2015-02-09 19:14:52 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-02-09 19:14:52 +0100 |
commit | 7dfdbe22de5be4cac15ace8c6141b6ce15987555 (patch) | |
tree | f45cc37d7dd7bea82c39011efdb85d5ab053e81d /src/core/arm/skyeye_common/vfp/vfpsingle.cpp | |
parent | Merge pull request #548 from lioncash/nits (diff) | |
parent | Throw more unused/unnecessary VFP code out (diff) | |
download | yuzu-7dfdbe22de5be4cac15ace8c6141b6ce15987555.tar yuzu-7dfdbe22de5be4cac15ace8c6141b6ce15987555.tar.gz yuzu-7dfdbe22de5be4cac15ace8c6141b6ce15987555.tar.bz2 yuzu-7dfdbe22de5be4cac15ace8c6141b6ce15987555.tar.lz yuzu-7dfdbe22de5be4cac15ace8c6141b6ce15987555.tar.xz yuzu-7dfdbe22de5be4cac15ace8c6141b6ce15987555.tar.zst yuzu-7dfdbe22de5be4cac15ace8c6141b6ce15987555.zip |
Diffstat (limited to 'src/core/arm/skyeye_common/vfp/vfpsingle.cpp')
-rw-r--r-- | src/core/arm/skyeye_common/vfp/vfpsingle.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp index da4d2d384..678b63f51 100644 --- a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp +++ b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp @@ -491,46 +491,6 @@ static u32 vfp_single_fcmpez(ARMul_State* state, int sd, int unused, s32 m, u32 return vfp_compare(state, sd, 1, 0, fpscr); } -static s64 vfp_single_to_doubleintern(ARMul_State* state, s32 m, u32 fpscr) //ichfly for internal use only -{ - struct vfp_single vsm; - struct vfp_double vdd; - int tm; - u32 exceptions = 0; - - vfp_single_unpack(&vsm, m); - - tm = vfp_single_type(&vsm); - - /* - * If we have a signalling NaN, signal invalid operation. - */ - if (tm == VFP_SNAN) - exceptions = FPSCR_IOC; - - if (tm & VFP_DENORMAL) - vfp_single_normalise_denormal(&vsm); - - vdd.sign = vsm.sign; - vdd.significand = (u64)vsm.significand << 32; - - /* - * If we have an infinity or NaN, the exponent must be 2047. - */ - if (tm & (VFP_INFINITY | VFP_NAN)) { - vdd.exponent = 2047; - if (tm == VFP_QNAN) - vdd.significand |= VFP_DOUBLE_SIGNIFICAND_QNAN; - goto pack_nan; - } else if (tm & VFP_ZERO) - vdd.exponent = 0; - else - vdd.exponent = vsm.exponent + (1023 - 127); -pack_nan: - vfp_double_normaliseroundintern(state, &vdd, fpscr, exceptions, "fcvtd"); - return vfp_double_pack(&vdd); -} - static u32 vfp_single_fcvtd(ARMul_State* state, int dd, int unused, s32 m, u32 fpscr) { struct vfp_single vsm; |