mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 20:13:07 +01:00
Remove void from argument lists in new bitcount_ functions
Keep it in line with the rest of the C code.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user