diff options
author | Lioncash <mathew1800@gmail.com> | 2015-08-16 01:03:22 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2015-08-16 01:08:51 +0200 |
commit | 46b0277cbf2c9f17df8a91f2e0c9e1850a200072 (patch) | |
tree | 44ea87eb047174febb56e115a91911b441d759b7 /src/core/arm/skyeye_common/vfp/vfpsingle.cpp | |
parent | Merge pull request #1027 from lioncash/debugger (diff) | |
download | yuzu-46b0277cbf2c9f17df8a91f2e0c9e1850a200072.tar yuzu-46b0277cbf2c9f17df8a91f2e0c9e1850a200072.tar.gz yuzu-46b0277cbf2c9f17df8a91f2e0c9e1850a200072.tar.bz2 yuzu-46b0277cbf2c9f17df8a91f2e0c9e1850a200072.tar.lz yuzu-46b0277cbf2c9f17df8a91f2e0c9e1850a200072.tar.xz yuzu-46b0277cbf2c9f17df8a91f2e0c9e1850a200072.tar.zst yuzu-46b0277cbf2c9f17df8a91f2e0c9e1850a200072.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/arm/skyeye_common/vfp/vfpsingle.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp index e5d339252..0fb3c3bf1 100644 --- a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp +++ b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp @@ -51,6 +51,7 @@ * =========================================================================== */ +#include <algorithm> #include <cinttypes> #include "common/common_funcs.h" @@ -815,9 +816,7 @@ vfp_single_add(struct vfp_single *vsd, struct vfp_single *vsn, * This ensures that NaN propagation works correctly. */ if (vsn->exponent < vsm->exponent) { - struct vfp_single *t = vsn; - vsn = vsm; - vsm = t; + std::swap(vsm, vsn); } /* @@ -872,9 +871,7 @@ vfp_single_multiply(struct vfp_single *vsd, struct vfp_single *vsn, struct vfp_s * This ensures that NaN propagation works correctly. */ if (vsn->exponent < vsm->exponent) { - struct vfp_single *t = vsn; - vsn = vsm; - vsm = t; + std::swap(vsm, vsn); LOG_TRACE(Core_ARM11, "swapping M <-> N"); } |