mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 17:45:26 +00:00
24 lines
436 B
C#
24 lines
436 B
C#
|
using System;
|
||
|
|
||
|
namespace ARMeilleure.State
|
||
|
{
|
||
|
[Flags]
|
||
|
public enum FPCR
|
||
|
{
|
||
|
Ufe = 1 << 11,
|
||
|
Fz = 1 << 24,
|
||
|
Dn = 1 << 25,
|
||
|
Ahp = 1 << 26
|
||
|
}
|
||
|
|
||
|
public static class FPCRExtensions
|
||
|
{
|
||
|
private const int RModeShift = 22;
|
||
|
|
||
|
public static FPRoundingMode GetRoundingMode(this FPCR fpcr)
|
||
|
{
|
||
|
return (FPRoundingMode)(((int)fpcr >> RModeShift) & 3);
|
||
|
}
|
||
|
}
|
||
|
}
|