mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-25 23:36:34 +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);
|
ApplySwizzleT(t, sz);
|
||||||
int n = GetNumVectorElements(sz);
|
int n = GetNumVectorElements(sz);
|
||||||
for (int i = 0; i < n ; i++) {
|
for (int i = 0; i < n ; i++) {
|
||||||
int a=s[i] - t[i];
|
float a = s[i] - t[i];
|
||||||
if (a > 0) d[i]=1;
|
d[i] = (0.0 < a) - (a < 0.0);
|
||||||
else if (a < 0) d[i]=-1;
|
|
||||||
else d[i]=0;
|
|
||||||
}
|
}
|
||||||
ApplyPrefixD(d, sz);
|
ApplyPrefixD(d, sz);
|
||||||
WriteVector(d, sz, vd);
|
WriteVector(d, sz, vd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user