mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +01:00
Add comment and rename function pointer
This commit is contained in:
@@ -204,16 +204,16 @@ static int32_t BitcountLut(uint32_t source)
|
||||
+ BitsSetTable256[source >> 24];
|
||||
}
|
||||
|
||||
static int32_t (*bitcount_fn)(uint32_t);
|
||||
static int32_t (*BitCountFn)(uint32_t);
|
||||
|
||||
void BitCountInit()
|
||||
{
|
||||
bitcount_fn = BitcountPopcntAvailable() ? BitcountPopcnt : BitcountLut;
|
||||
BitCountFn = BitcountPopcntAvailable() ? BitcountPopcnt : BitcountLut;
|
||||
}
|
||||
|
||||
int32_t BitCount(uint32_t source)
|
||||
{
|
||||
return bitcount_fn(source);
|
||||
return BitCountFn(source);
|
||||
}
|
||||
|
||||
/* Case insensitive logical compare */
|
||||
|
||||
Reference in New Issue
Block a user