summaryrefslogtreecommitdiffstats
path: root/src/core/arm/interpreter/vfp/vfpdouble.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-05-17 19:55:45 +0200
committerarchshift <admin@archshift.com>2014-05-17 19:55:45 +0200
commitc396a5ac576c172951e129f19a987398d53dc95c (patch)
treedfe448a8080bf272854c60e6b6e3ff0724f76558 /src/core/arm/interpreter/vfp/vfpdouble.cpp
parentUpdated cmakelists (diff)
downloadyuzu-c396a5ac576c172951e129f19a987398d53dc95c.tar
yuzu-c396a5ac576c172951e129f19a987398d53dc95c.tar.gz
yuzu-c396a5ac576c172951e129f19a987398d53dc95c.tar.bz2
yuzu-c396a5ac576c172951e129f19a987398d53dc95c.tar.lz
yuzu-c396a5ac576c172951e129f19a987398d53dc95c.tar.xz
yuzu-c396a5ac576c172951e129f19a987398d53dc95c.tar.zst
yuzu-c396a5ac576c172951e129f19a987398d53dc95c.zip
Diffstat (limited to 'src/core/arm/interpreter/vfp/vfpdouble.cpp')
-rw-r--r--src/core/arm/interpreter/vfp/vfpdouble.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/arm/interpreter/vfp/vfpdouble.cpp b/src/core/arm/interpreter/vfp/vfpdouble.cpp
index cd5b5afa4..7f975cbeb 100644
--- a/src/core/arm/interpreter/vfp/vfpdouble.cpp
+++ b/src/core/arm/interpreter/vfp/vfpdouble.cpp
@@ -69,9 +69,9 @@ static void vfp_double_dump(const char *str, struct vfp_double *d)
static void vfp_double_normalise_denormal(struct vfp_double *vd)
{
- int bits = 31 - fls(vd->significand >> 32);
+ int bits = 31 - vfp_fls(vd->significand >> 32);
if (bits == 31)
- bits = 63 - fls(vd->significand);
+ bits = 63 - vfp_fls(vd->significand);
vfp_double_dump("normalise_denormal: in", vd);
@@ -108,9 +108,9 @@ u32 vfp_double_normaliseround(ARMul_State* state, int dd, struct vfp_double *vd,
exponent = vd->exponent;
significand = vd->significand;
- shift = 32 - fls(significand >> 32);
+ shift = 32 - vfp_fls(significand >> 32);
if (shift == 32)
- shift = 64 - fls(significand);
+ shift = 64 - vfp_fls(significand);
if (shift) {
exponent -= shift;
significand <<= shift;