1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-12 02:30:29 +09:00

Simplify floating point mod and round math jit helpers (#100222)

Co-authored-by: Michał Petryka <paprikapolishgamer@gmail.com>
This commit is contained in:
Jan Kotas 2024-03-26 13:23:03 -07:00 committed by GitHub
parent 969d4248fd
commit 503970c14c
Signed by: github
GPG key ID: B5690EEEBB952194
28 changed files with 56 additions and 289 deletions

View file

@ -8743,14 +8743,6 @@ ValueNum ValueNumStore::EvalMathFuncBinary(var_types typ, NamedIntrinsic gtMathF
break;
}
case NI_System_Math_FMod:
{
assert(typ == TypeOfVN(arg1VN));
double arg1Val = GetConstantDouble(arg1VN);
res = fmod(arg0Val, arg1Val);
break;
}
case NI_System_Math_Pow:
{
assert(typ == TypeOfVN(arg1VN));
@ -8848,14 +8840,6 @@ ValueNum ValueNumStore::EvalMathFuncBinary(var_types typ, NamedIntrinsic gtMathF
break;
}
case NI_System_Math_FMod:
{
assert(typ == TypeOfVN(arg1VN));
float arg1Val = GetConstantSingle(arg1VN);
res = fmodf(arg0Val, arg1Val);
break;
}
case NI_System_Math_Max:
{
assert(typ == TypeOfVN(arg1VN));
@ -8946,10 +8930,6 @@ ValueNum ValueNumStore::EvalMathFuncBinary(var_types typ, NamedIntrinsic gtMathF
vnf = VNF_Atan2;
break;
case NI_System_Math_FMod:
vnf = VNF_FMod;
break;
case NI_System_Math_Max:
vnf = VNF_Max;
break;