aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Cpu/LightningJit/Arm32/Target/Arm64/InstEmitVfpRound.cs
blob: 2826fa6424d0e9c26de19fb7a3bafedfa085445e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace Ryujinx.Cpu.LightningJit.Arm32.Target.Arm64
{
    static class InstEmitVfpRound
    {
        public static void Vrinta(CodeGenContext context, uint rd, uint rm, uint size)
        {
            InstEmitNeonCommon.EmitScalarUnaryF(context, rd, rm, size, context.Arm64Assembler.FrintaFloat);
        }

        public static void Vrintm(CodeGenContext context, uint rd, uint rm, uint size)
        {
            InstEmitNeonCommon.EmitScalarUnaryF(context, rd, rm, size, context.Arm64Assembler.FrintmFloat);
        }

        public static void Vrintn(CodeGenContext context, uint rd, uint rm, uint size)
        {
            InstEmitNeonCommon.EmitScalarUnaryF(context, rd, rm, size, context.Arm64Assembler.FrintnFloat);
        }

        public static void Vrintp(CodeGenContext context, uint rd, uint rm, uint size)
        {
            InstEmitNeonCommon.EmitScalarUnaryF(context, rd, rm, size, context.Arm64Assembler.FrintpFloat);
        }

        public static void Vrintr(CodeGenContext context, uint rd, uint rm, uint size)
        {
            InstEmitNeonCommon.EmitScalarUnaryF(context, rd, rm, size, context.Arm64Assembler.FrintiFloat);
        }

        public static void Vrintx(CodeGenContext context, uint rd, uint rm, uint size)
        {
            InstEmitNeonCommon.EmitScalarUnaryF(context, rd, rm, size, context.Arm64Assembler.FrintxFloat);
        }

        public static void Vrintz(CodeGenContext context, uint rd, uint rm, uint size)
        {
            InstEmitNeonCommon.EmitScalarUnaryF(context, rd, rm, size, context.Arm64Assembler.FrintzFloat);
        }
    }
}