]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix some stuff
authorDale Weiler <killfieldengine@gmail.com>
Sat, 14 Dec 2013 20:07:04 +0000 (15:07 -0500)
committerDale Weiler <killfieldengine@gmail.com>
Sat, 14 Dec 2013 20:07:04 +0000 (15:07 -0500)
hash.c

diff --git a/hash.c b/hash.c
index 5043962974290a9054dd69604e416f3bc87beacc..276817e2134573c2425ddbc744901992e297f4e4 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -252,7 +252,7 @@ static GMQCC_FORCEINLINE uint32_t hash_native_result(uint32_t hash, uint32_t car
     return hash;
 }
 
-static GMQCC_FORCEINLINE uint32_t hash_native(const void *GMQCC_RESTRICT key, size_t length) {
+static GMQCC_FORCEINLINE GMQCC_USED uint32_t hash_native(const void *GMQCC_RESTRICT key, size_t length) {
     uint32_t hash  = HASH_SEED;
     uint32_t carry = 0;
 
@@ -389,7 +389,7 @@ static uint32_t hash_entry(const void *GMQCC_RESTRICT key, size_t length) {
     }
 
     return (GMQCC_LIKELY(sse))
-                ? hash_sse(key, length);
+                ? hash_sse(key, length)
                 : hash_native(key, length);
 /*
  * Same as above but this time host compiler was defined with SSE support.