From f3a277e04009dbdf0c2676b8d986e8f351f24c62 Mon Sep 17 00:00:00 2001 From: Michael Tuexen <tuexen@fh-muenster.de> Date: Sun, 4 Oct 2015 19:44:08 +0200 Subject: [PATCH] Allow compilation on gcc 4.8 --- gtests/net/packetdrill/hash.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gtests/net/packetdrill/hash.c b/gtests/net/packetdrill/hash.c index 7cfcd1a7..268ee3f2 100644 --- a/gtests/net/packetdrill/hash.c +++ b/gtests/net/packetdrill/hash.c @@ -36,12 +36,12 @@ * Platform-specific functions and macros */ -static __always_inline u32 rotl32(u32 x, s8 r) +static __inline u32 rotl32(u32 x, s8 r) { return (x << r) | (x >> (32 - r)); } -static __always_inline u64 rotl64(u64 x, s8 r) +static __inline u64 rotl64(u64 x, s8 r) { return (x << r) | (x >> (64 - r)); } @@ -56,12 +56,12 @@ static __always_inline u64 rotl64(u64 x, s8 r) * handle aligned reads, do the conversion here */ -static __always_inline u32 getblock_32(const u32 *p, int i) +static __inline u32 getblock_32(const u32 *p, int i) { return p[i]; } -static __always_inline u64 getblock_64(const u64 *p, int i) +static __inline u64 getblock_64(const u64 *p, int i) { return p[i]; } @@ -70,7 +70,7 @@ static __always_inline u64 getblock_64(const u64 *p, int i) * Finalization mix - force all bits of a hash block to avalanche */ -static __always_inline u32 fmix_32(u32 h) +static __inline u32 fmix_32(u32 h) { h ^= h >> 16; h *= 0x85ebca6b; @@ -83,7 +83,7 @@ static __always_inline u32 fmix_32(u32 h) /*---------*/ -static __always_inline u64 fmix_64(u64 k) +static __inline u64 fmix_64(u64 k) { k ^= k >> 33; k *= BIG_CONSTANT(0xff51afd7ed558ccd); -- GitLab