X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=util.c;h=3961c74f81d996d3b28e41641fcbc2a3be57b376;hb=3e8435783c0112a294588c7ec72fe03559888ed1;hp=c3d3d4fa2d6cc9c220784c079122f146e508ff1f;hpb=9f742271b1224c29b25f21fd9680b9031edf0b92;p=xonotic%2Fgmqcc.git diff --git a/util.c b/util.c index c3d3d4f..3961c74 100644 --- a/util.c +++ b/util.c @@ -533,7 +533,7 @@ typedef struct hash_node_t { * below. These should be autovectorized by gcc. */ #ifdef __x86_64__ -GMQCC_INLINE uint32_t util_hthashfunc(hash_table_t *ht, const char *key, register size_t seed) { +static GMQCC_INLINE uint32_t util_hthashfunc(hash_table_t *ht, const char *key, size_t seed) { const uint64_t mix = 0xC6A4A7935BD1E995UL; const int rot = 47; size_t size = strlen(key); @@ -575,7 +575,7 @@ GMQCC_INLINE uint32_t util_hthashfunc(hash_table_t *ht, const char *key, registe } #else -GMQCC_INLINE uint32_t util_hthashfunc(hash_table_t *ht, const char *key, register size_t seed) { +static GMQCC_INLINE uint32_t util_hthashfunc(hash_table_t *ht, const char *key, size_t seed) { const uint32_t mix = 0x5BD1E995; const uint32_t rot = 24; size_t size = strlen(key);