diff options
| author | 2015-01-12 15:24:57 -0500 | |
|---|---|---|
| committer | 2015-01-12 15:24:57 -0500 | |
| commit | 9288893d290b9447c3b4b0efd85fcc3ebeb23f30 (patch) | |
| tree | 33adebf512456074cb0b2c2ff8f244ccba9f87e0 /src | |
| parent | Merge pull request #476 from lioncash/asr (diff) | |
| download | yuzu-9288893d290b9447c3b4b0efd85fcc3ebeb23f30.tar.gz yuzu-9288893d290b9447c3b4b0efd85fcc3ebeb23f30.tar.xz yuzu-9288893d290b9447c3b4b0efd85fcc3ebeb23f30.zip | |
vfp: Remove dead code
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/arm/skyeye_common/vfp/vfpsingle.cpp | 64 |
1 files changed, 14 insertions, 50 deletions
diff --git a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp index 08d0d719f..77b528607 100644 --- a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp +++ b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp | |||
| @@ -959,70 +959,34 @@ vfp_single_multiply(struct vfp_single *vsd, struct vfp_single *vsn, struct vfp_s | |||
| 959 | static u32 | 959 | static u32 |
| 960 | vfp_single_multiply_accumulate(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr, u32 negate, const char *func) | 960 | vfp_single_multiply_accumulate(ARMul_State* state, int sd, int sn, s32 m, u32 fpscr, u32 negate, const char *func) |
| 961 | { | 961 | { |
| 962 | 962 | vfp_single vsd, vsp, vsn, vsm; | |
| 963 | { | ||
| 964 | struct vfp_single vsd, vsp, vsn, vsm; | ||
| 965 | u32 exceptions; | ||
| 966 | s32 v; | ||
| 967 | |||
| 968 | |||
| 969 | |||
| 970 | v = vfp_get_float(state, sn); | ||
| 971 | pr_debug("VFP: s%u = %08x\n", sn, v); | ||
| 972 | vfp_single_unpack(&vsn, v); | ||
| 973 | if (vsn.exponent == 0 && vsn.significand) | ||
| 974 | vfp_single_normalise_denormal(&vsn); | ||
| 975 | |||
| 976 | vfp_single_unpack(&vsm, m); | ||
| 977 | if (vsm.exponent == 0 && vsm.significand) | ||
| 978 | vfp_single_normalise_denormal(&vsm); | ||
| 979 | |||
| 980 | exceptions = vfp_single_multiply(&vsp, &vsn, &vsm, fpscr); | ||
| 981 | |||
| 982 | if (negate & NEG_MULTIPLY) | ||
| 983 | vsp.sign = vfp_sign_negate(vsp.sign); | ||
| 984 | |||
| 985 | v = vfp_get_float(state, sd); | ||
| 986 | pr_debug("VFP: s%u = %08x\n", sd, v); | ||
| 987 | vfp_single_unpack(&vsn, v); | ||
| 988 | if (negate & NEG_SUBTRACT) | ||
| 989 | vsn.sign = vfp_sign_negate(vsn.sign); | ||
| 990 | |||
| 991 | exceptions |= vfp_single_add(&vsd, &vsn, &vsp, fpscr); | ||
| 992 | |||
| 993 | return vfp_single_normaliseround(state, sd, &vsd, fpscr, exceptions, func); | ||
| 994 | } | ||
| 995 | |||
| 996 | struct vfp_double vsd, vsp, vsn, vsm; | ||
| 997 | u32 exceptions; | 963 | u32 exceptions; |
| 998 | s32 v; | 964 | s32 v; |
| 999 | s64 vd; | ||
| 1000 | s64 md; | ||
| 1001 | 965 | ||
| 1002 | v = vfp_get_float(state, sn); | 966 | v = vfp_get_float(state, sn); |
| 1003 | vd = vfp_single_to_doubleintern(state, v, fpscr); | 967 | pr_debug("VFP: s%u = %08x\n", sn, v); |
| 1004 | vfp_double_unpack(&vsn, vd); | 968 | vfp_single_unpack(&vsn, v); |
| 969 | if (vsn.exponent == 0 && vsn.significand) | ||
| 970 | vfp_single_normalise_denormal(&vsn); | ||
| 971 | |||
| 972 | vfp_single_unpack(&vsm, m); | ||
| 973 | if (vsm.exponent == 0 && vsm.significand) | ||
| 974 | vfp_single_normalise_denormal(&vsm); | ||
| 1005 | 975 | ||
| 1006 | md = vfp_single_to_doubleintern(state, m, fpscr); | 976 | exceptions = vfp_single_multiply(&vsp, &vsn, &vsm, fpscr); |
| 1007 | vfp_double_unpack(&vsm, md); | ||
| 1008 | 977 | ||
| 1009 | exceptions = vfp_double_multiply(&vsp, &vsn, &vsm, fpscr); | ||
| 1010 | if (negate & NEG_MULTIPLY) | 978 | if (negate & NEG_MULTIPLY) |
| 1011 | vsp.sign = vfp_sign_negate(vsp.sign); | 979 | vsp.sign = vfp_sign_negate(vsp.sign); |
| 1012 | 980 | ||
| 1013 | v = vfp_get_float(state, sd); | 981 | v = vfp_get_float(state, sd); |
| 1014 | vd = vfp_single_to_doubleintern(state, v, fpscr); | 982 | pr_debug("VFP: s%u = %08x\n", sd, v); |
| 1015 | vfp_double_unpack(&vsn, vd); | 983 | vfp_single_unpack(&vsn, v); |
| 1016 | |||
| 1017 | if (negate & NEG_SUBTRACT) | 984 | if (negate & NEG_SUBTRACT) |
| 1018 | vsn.sign = vfp_sign_negate(vsn.sign); | 985 | vsn.sign = vfp_sign_negate(vsn.sign); |
| 1019 | 986 | ||
| 1020 | exceptions |= vfp_double_add(&vsd, &vsn, &vsp, fpscr); | 987 | exceptions |= vfp_single_add(&vsd, &vsn, &vsp, fpscr); |
| 1021 | |||
| 1022 | s64 debug = vfp_double_pack(&vsd); | ||
| 1023 | |||
| 1024 | return vfp_double_fcvtsinterncutting(state, sd, &vsd, fpscr); | ||
| 1025 | 988 | ||
| 989 | return vfp_single_normaliseround(state, sd, &vsd, fpscr, exceptions, func); | ||
| 1026 | } | 990 | } |
| 1027 | 991 | ||
| 1028 | /* | 992 | /* |