mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use bool instead of int for bitcount_popcnt_available's return value
This commit is contained in:
parent
d7606c8fa3
commit
b68b6f731b
|
@ -203,7 +203,7 @@ int bitscanforward(int source)
|
|||
#define OpenRCT2_POPCNT_MSVC
|
||||
#endif
|
||||
|
||||
static int bitcount_popcnt_available()
|
||||
static bool bitcount_popcnt_available()
|
||||
{
|
||||
// POPCNT support is declared as the 23rd bit of ECX with CPUID(EAX = 1).
|
||||
#if defined(OpenRCT2_POPCNT_GNUC)
|
||||
|
@ -217,7 +217,7 @@ static int bitcount_popcnt_available()
|
|||
__cpuid(regs, 1);
|
||||
return (regs[2] & (1 << 23));
|
||||
#else
|
||||
return 0;
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue