mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-06 16:03:05 +00:00
optimize functions
This commit is contained in:
parent
a79db3a74d
commit
f6af7d391e
1 changed files with 6 additions and 14 deletions
|
@ -85,32 +85,24 @@ namespace ChocolArm64.Instruction
|
|||
{
|
||||
AOpCodeSimdShImm Op = (AOpCodeSimdShImm)Context.CurrOp;
|
||||
|
||||
int Shift = GetImmShr(Op);
|
||||
|
||||
Action Emit = () =>
|
||||
EmitScalarSaturatingNarrowOpSxZx(Context, () =>
|
||||
{
|
||||
Context.EmitLdc_I4(Shift);
|
||||
Context.EmitLdc_I4(GetImmShr(Op));
|
||||
|
||||
Context.Emit(OpCodes.Shr);
|
||||
};
|
||||
|
||||
EmitScalarSaturatingNarrowOpSxZx(Context, Emit);
|
||||
});
|
||||
}
|
||||
|
||||
public static void Sqshrun_V(AILEmitterCtx Context)
|
||||
{
|
||||
AOpCodeSimdShImm Op = (AOpCodeSimdShImm)Context.CurrOp;
|
||||
|
||||
int Shift = GetImmShr(Op);
|
||||
|
||||
Action Emit = () =>
|
||||
EmitVectorSaturatingNarrowOpSxZx(Context, () =>
|
||||
{
|
||||
Context.EmitLdc_I4(Shift);
|
||||
Context.EmitLdc_I4(GetImmShr(Op));
|
||||
|
||||
Context.Emit(OpCodes.Shr);
|
||||
};
|
||||
|
||||
EmitVectorSaturatingNarrowOpSxZx(Context, Emit);
|
||||
});
|
||||
}
|
||||
|
||||
public static void Sqrshrn_V(AILEmitterCtx Context)
|
||||
|
|
Loading…
Reference in a new issue