mirror of
https://github.com/ptitSeb/box64.git
synced 2024-11-23 06:30:22 +00:00
[EMU] [ARM64_DYNAREC] Fix Some Warnings on Clang Compilers (#1757)
This commit is contained in:
parent
a7c61d8e20
commit
0b1dd757be
@ -2332,7 +2332,7 @@ uintptr_t dynarec64_00(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int nin
|
||||
addr+=2;
|
||||
//BARRIER(BARRIER_FLOAT);
|
||||
INST_NAME("Special Box64 instruction");
|
||||
if((PK64(0)==0))
|
||||
if(PK64(0)==0)
|
||||
{
|
||||
addr+=8;
|
||||
MESSAGE(LOG_DEBUG, "Exit x64 Emu\n");
|
||||
|
@ -119,7 +119,7 @@ uintptr_t RunAVX_F20F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step)
|
||||
GETEX(0);
|
||||
GETGD;
|
||||
if(rex.w)
|
||||
if(isnan(EX->d[0]) || isinf(EX->d[0]) || EX->d[0]>0x7fffffffffffffffLL)
|
||||
if(isnan(EX->d[0]) || isinf(EX->d[0]) || EX->d[0]>(double)0x7fffffffffffffffLL)
|
||||
GD->q[0] = 0x8000000000000000LL;
|
||||
else
|
||||
GD->sq[0] = EX->d[0];
|
||||
@ -136,7 +136,7 @@ uintptr_t RunAVX_F20F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step)
|
||||
GETEX(0);
|
||||
GETGD;
|
||||
if(rex.w) {
|
||||
if(isnan(EX->d[0]) || isinf(EX->d[0]) || EX->d[0]>0x7fffffffffffffffLL)
|
||||
if(isnan(EX->d[0]) || isinf(EX->d[0]) || EX->d[0]>(double)0x7fffffffffffffffLL)
|
||||
GD->q[0] = 0x8000000000000000LL;
|
||||
else
|
||||
switch(emu->mxcsr.f.MXCSR_RC) {
|
||||
|
@ -147,7 +147,7 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step)
|
||||
else
|
||||
GD->sq[0] = EX->f[0];
|
||||
} else {
|
||||
if(isnanf(EX->f[0]) || isinff(EX->f[0]) || EX->f[0]>0x7fffffff)
|
||||
if(isnanf(EX->f[0]) || isinff(EX->f[0]) || EX->f[0]>(float)0x7fffffff)
|
||||
GD->dword[0] = 0x80000000;
|
||||
else
|
||||
GD->sdword[0] = EX->f[0];
|
||||
|
@ -93,7 +93,7 @@ uintptr_t RunF20F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step)
|
||||
_GETEX(0);
|
||||
GETGD;
|
||||
if(rex.w)
|
||||
if(isnan(EX->d[0]) || isinf(EX->d[0]) || EX->d[0]>0x7fffffffffffffffLL)
|
||||
if(isnan(EX->d[0]) || isinf(EX->d[0]) || EX->d[0]>(double)0x7fffffffffffffffLL)
|
||||
GD->q[0] = 0x8000000000000000LL;
|
||||
else
|
||||
GD->sq[0] = EX->d[0];
|
||||
@ -110,7 +110,7 @@ uintptr_t RunF20F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step)
|
||||
_GETEX(0);
|
||||
GETGD;
|
||||
if(rex.w) {
|
||||
if(isnan(EX->d[0]) || isinf(EX->d[0]) || EX->d[0]>0x7fffffffffffffffLL)
|
||||
if(isnan(EX->d[0]) || isinf(EX->d[0]) || EX->d[0]>(double)0x7fffffffffffffffLL)
|
||||
GD->q[0] = 0x8000000000000000LL;
|
||||
else
|
||||
switch(emu->mxcsr.f.MXCSR_RC) {
|
||||
|
@ -109,7 +109,7 @@ uintptr_t RunF30F(x64emu_t *emu, rex_t rex, uintptr_t addr)
|
||||
else
|
||||
GD->sq[0] = EX->f[0];
|
||||
} else {
|
||||
if(isnanf(EX->f[0]) || isinff(EX->f[0]) || EX->f[0]>0x7fffffff)
|
||||
if(isnanf(EX->f[0]) || isinff(EX->f[0]) || EX->f[0]>(float)0x7fffffff)
|
||||
GD->dword[0] = 0x80000000;
|
||||
else
|
||||
GD->sdword[0] = EX->f[0];
|
||||
|
Loading…
Reference in New Issue
Block a user