mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-27 17:52:01 +00:00
[CPU] Fix CNT instruction
This commit is contained in:
parent
7b2f471d4f
commit
cb29b4303c
2 changed files with 5 additions and 7 deletions
|
@ -250,10 +250,10 @@ namespace ChocolArm64.Instruction
|
|||
|
||||
public static int CountSetBits8(byte Value)
|
||||
{
|
||||
return (Value >> 0) & 1 + (Value >> 1) & 1 +
|
||||
(Value >> 2) & 1 + (Value >> 3) & 1 +
|
||||
(Value >> 4) & 1 + (Value >> 5) & 1 +
|
||||
(Value >> 6) & 1 + (Value >> 7);
|
||||
return ((Value >> 0) & 1) + ((Value >> 1) & 1) +
|
||||
((Value >> 2) & 1) + ((Value >> 3) & 1) +
|
||||
((Value >> 4) & 1) + ((Value >> 5) & 1) +
|
||||
((Value >> 6) & 1) + (Value >> 7);
|
||||
}
|
||||
|
||||
public static float RoundF(float Value, int Fpcr)
|
||||
|
|
|
@ -316,8 +316,6 @@ namespace Ryujinx.Core.OsHle.Services.Nv
|
|||
int Padding = Reader.ReadInt32();
|
||||
int Offset = Reader.ReadInt32();
|
||||
int Pages = Reader.ReadInt32();
|
||||
|
||||
System.Console.WriteLine("remap " + Offset.ToString("x8") + " " + Pages.ToString("x8"));
|
||||
}
|
||||
|
||||
//TODO
|
||||
|
|
Loading…
Reference in a new issue