mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-24 14:54:33 +00:00
Don't chop the float in vscmp, don't branch.
This commit is contained in:
parent
8c267b0105
commit
8964ebcfd9
@ -1495,10 +1495,8 @@ namespace MIPSInt
|
||||
ApplySwizzleT(t, sz);
|
||||
int n = GetNumVectorElements(sz);
|
||||
for (int i = 0; i < n ; i++) {
|
||||
int a=s[i] - t[i];
|
||||
if (a > 0) d[i]=1;
|
||||
else if (a < 0) d[i]=-1;
|
||||
else d[i]=0;
|
||||
float a = s[i] - t[i];
|
||||
d[i] = (0.0 < a) - (a < 0.0);
|
||||
}
|
||||
ApplyPrefixD(d, sz);
|
||||
WriteVector(d, sz, vd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user