Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
CountBits()
[2/3]
static int System.Reflection.Internal.BitArithmetic.CountBits
(
uint
v
)
inline
static
package
Definition at line
10
of file
BitArithmetic.cs
.
11
{
12
v -= (v >> 1) & 0x55555555;
13
v = (v & 0x33333333) + ((v >> 2) & 0x33333333);
14
return
(
int
)(((v + (v >> 4)) & 0xF0F0F0F) * 16843009) >> 24;
15
}
System
Reflection
Internal
BitArithmetic
Generated by
1.10.0