Isn’t that conveniant?

This commit is contained in:
Isaac Marovitz 2023-08-04 17:15:38 -04:00 committed by Isaac Marovitz
parent 7cb91d8e5f
commit eeddfe63ea
3 changed files with 2 additions and 6 deletions

View file

@ -2,9 +2,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
{
static class HelperFunctionNames
{
public static string MultiplyHighS32 = "helperMultiplyHighS32";
public static string MultiplyHighU32 = "helperMultiplyHighU32";
public static string Shuffle = "helperShuffle";
public static string ShuffleDown = "helperShuffleDown";
public static string ShuffleUp = "helperShuffleUp";

View file

@ -1,4 +1,3 @@
template<>
inline bool voteAllEqual(bool value)
{
return simd_all(value) || !simd_any(value);

View file

@ -98,8 +98,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions
Add(Instruction.MinimumU32, InstType.CallBinary, "min");
Add(Instruction.Modulo, InstType.CallBinary, "%");
Add(Instruction.Multiply, InstType.OpBinaryCom, "*", 1);
Add(Instruction.MultiplyHighS32, InstType.CallBinary, HelperFunctionNames.MultiplyHighS32);
Add(Instruction.MultiplyHighU32, InstType.CallBinary, HelperFunctionNames.MultiplyHighU32);
Add(Instruction.MultiplyHighS32, InstType.CallBinary, "mulhi");
Add(Instruction.MultiplyHighU32, InstType.CallBinary, "mulhi");
Add(Instruction.Negate, InstType.OpUnary, "-");
Add(Instruction.ReciprocalSquareRoot, InstType.CallUnary, "rsqrt");
Add(Instruction.Return, InstType.OpNullary, "return");