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:
Daniel Kamil Kozar 2016-10-31 00:58:22 +01:00
parent 46b6ff35a0
commit d7606c8fa3
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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);