Use bool instead of int for bitcount_popcnt_available's return value

This commit is contained in:
Daniel Kamil Kozar 2016-10-31 01:06:18 +01:00
parent d7606c8fa3
commit b68b6f731b
1 changed files with 2 additions and 2 deletions

View File

@ -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
}