mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 06:09:58 +00:00
[SOFT386]
Improve the performance of Soft386CalculateParity. svn path=/branches/ntvdm/; revision=60621
This commit is contained in:
parent
da5b8fc439
commit
8dff09c37a
1 changed files with 1 additions and 4 deletions
|
@ -436,10 +436,7 @@ FORCEINLINE
|
|||
BOOLEAN
|
||||
Soft386CalculateParity(UCHAR Number)
|
||||
{
|
||||
Number ^= Number >> 1;
|
||||
Number ^= Number >> 2;
|
||||
Number ^= Number >> 4;
|
||||
return !(Number & 1);
|
||||
return (0x9669 >> ((Number & 0x0F) ^ (Number >> 4))) & 1;
|
||||
}
|
||||
|
||||
FORCEINLINE
|
||||
|
|
Loading…
Reference in a new issue