mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-08 00:43:04 +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;
|
AOpCodeSimdShImm Op = (AOpCodeSimdShImm)Context.CurrOp;
|
||||||
|
|
||||||
int Shift = GetImmShr(Op);
|
EmitScalarSaturatingNarrowOpSxZx(Context, () =>
|
||||||
|
|
||||||
Action Emit = () =>
|
|
||||||
{
|
{
|
||||||
Context.EmitLdc_I4(Shift);
|
Context.EmitLdc_I4(GetImmShr(Op));
|
||||||
|
|
||||||
Context.Emit(OpCodes.Shr);
|
Context.Emit(OpCodes.Shr);
|
||||||
};
|
});
|
||||||
|
|
||||||
EmitScalarSaturatingNarrowOpSxZx(Context, Emit);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Sqshrun_V(AILEmitterCtx Context)
|
public static void Sqshrun_V(AILEmitterCtx Context)
|
||||||
{
|
{
|
||||||
AOpCodeSimdShImm Op = (AOpCodeSimdShImm)Context.CurrOp;
|
AOpCodeSimdShImm Op = (AOpCodeSimdShImm)Context.CurrOp;
|
||||||
|
|
||||||
int Shift = GetImmShr(Op);
|
EmitVectorSaturatingNarrowOpSxZx(Context, () =>
|
||||||
|
|
||||||
Action Emit = () =>
|
|
||||||
{
|
{
|
||||||
Context.EmitLdc_I4(Shift);
|
Context.EmitLdc_I4(GetImmShr(Op));
|
||||||
|
|
||||||
Context.Emit(OpCodes.Shr);
|
Context.Emit(OpCodes.Shr);
|
||||||
};
|
});
|
||||||
|
|
||||||
EmitVectorSaturatingNarrowOpSxZx(Context, Emit);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Sqrshrn_V(AILEmitterCtx Context)
|
public static void Sqrshrn_V(AILEmitterCtx Context)
|
||||||
|
|
Loading…
Reference in a new issue