diff --git a/src/util/util.c b/src/util/util.c index 1cb56a3511..5a81caccb8 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -203,7 +203,7 @@ int bitscanforward(int source) #define OpenRCT2_POPCNT_MSVC #endif -static int bitcount_available(void) +static int bitcount_popcnt_available() { // POPCNT support is declared as the 23rd bit of ECX with CPUID(EAX = 1). #if defined(OpenRCT2_POPCNT_GNUC) @@ -255,9 +255,9 @@ static int bitcount_lut(int source) static int(*bitcount_fn)(int); -void bitcount_init(void) +void bitcount_init() { - bitcount_fn = bitcount_available() ? bitcount_popcnt : bitcount_lut; + bitcount_fn = bitcount_popcnt_available() ? bitcount_popcnt : bitcount_lut; } int bitcount(int source) diff --git a/src/util/util.h b/src/util/util.h index 46e931b4f2..0132acf728 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -38,7 +38,7 @@ void path_end_with_separator(utf8 *path, size_t size); bool readentirefile(const utf8 *path, void **outBuffer, size_t *outLength); int bitscanforward(int source); -void bitcount_init(void); +void bitcount_init(); int bitcount(int source); bool strequals(const char *a, const char *b, int length, bool caseInsensitive); int strcicmp(char const *a, char const *b);