From: Yann Collet Date: Tue, 26 Jul 2016 19:30:35 +0000 (+0200) Subject: Improved speed on clang and gcc -O2, thanks to @ebiggers ! (#263) X-Git-Tag: v0.8.0^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d50f9db3ea4c189f1b460dda5b4883a5022cc2a8;p=thirdparty%2Fzstd.git Improved speed on clang and gcc -O2, thanks to @ebiggers ! (#263) --- diff --git a/lib/common/mem.h b/lib/common/mem.h index 4d35f5ef9..fc7b103e6 100644 --- a/lib/common/mem.h +++ b/lib/common/mem.h @@ -54,7 +54,7 @@ extern "C" { # include /* _byteswap_* */ #endif #if defined(__GNUC__) -# define MEM_STATIC static __attribute__((unused)) +# define MEM_STATIC static __inline __attribute__((unused)) #elif defined (__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) # define MEM_STATIC static inline #elif defined(_MSC_VER) @@ -387,4 +387,3 @@ MEM_STATIC U32 MEM_readMINMATCH(const void* memPtr, U32 length) #endif #endif /* MEM_H_MODULE */ -