Skip to content
Snippets Groups Projects
Commit 8fc8c511 authored by bunnei's avatar bunnei
Browse files

Merge pull request #625 from lioncash/warn

vfp: Get rid of warnings
parents 510246dd 4b89cf9e
No related branches found
No related tags found
No related merge requests found
...@@ -144,8 +144,8 @@ static inline void mul64to128(u64* resh, u64* resl, u64 n, u64 m) ...@@ -144,8 +144,8 @@ static inline void mul64to128(u64* resh, u64* resl, u64 n, u64 m)
u32 nh, nl, mh, ml; u32 nh, nl, mh, ml;
u64 rh, rma, rmb, rl; u64 rh, rma, rmb, rl;
nl = n; nl = static_cast<u32>(n);
ml = m; ml = static_cast<u32>(m);
rl = (u64)nl * ml; rl = (u64)nl * ml;
nh = n >> 32; nh = n >> 32;
......
...@@ -661,8 +661,8 @@ static u32 vfp_double_ftosi(ARMul_State* state, int sd, int unused, int dm, u32 ...@@ -661,8 +661,8 @@ static u32 vfp_double_ftosi(ARMul_State* state, int sd, int unused, int dm, u32
if ((rem + incr) < rem && d < 0xffffffff) if ((rem + incr) < rem && d < 0xffffffff)
d += 1; d += 1;
if (d > (0x7fffffff + (vdm.sign != 0))) { if (d > (0x7fffffffU + (vdm.sign != 0))) {
d = (0x7fffffff + (vdm.sign != 0)); d = (0x7fffffffU + (vdm.sign != 0));
exceptions |= FPSCR_IOC; exceptions |= FPSCR_IOC;
} else if (rem) } else if (rem)
exceptions |= FPSCR_IXC; exceptions |= FPSCR_IXC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment