[CPU] Fix CNT instruction
This commit is contained in:
parent
65c490f350
commit
2afc12c4a7
1 changed files with 5 additions and 5 deletions
|
@ -250,10 +250,10 @@ namespace ChocolArm64.Instruction
|
||||||
|
|
||||||
public static int CountSetBits8(byte Value)
|
public static int CountSetBits8(byte Value)
|
||||||
{
|
{
|
||||||
return (Value >> 0) & 1 + (Value >> 1) & 1 +
|
return ((Value >> 0) & 1) + ((Value >> 1) & 1) +
|
||||||
(Value >> 2) & 1 + (Value >> 3) & 1 +
|
((Value >> 2) & 1) + ((Value >> 3) & 1) +
|
||||||
(Value >> 4) & 1 + (Value >> 5) & 1 +
|
((Value >> 4) & 1) + ((Value >> 5) & 1) +
|
||||||
(Value >> 6) & 1 + (Value >> 7);
|
((Value >> 6) & 1) + (Value >> 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static float RoundF(float Value, int Fpcr)
|
public static float RoundF(float Value, int Fpcr)
|
||||||
|
|
Loading…
Reference in a new issue