]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Improved speed on clang and gcc -O2, thanks to @ebiggers ! (#263)
authorYann Collet <yann.collet.73@gmail.com>
Tue, 26 Jul 2016 19:30:35 +0000 (21:30 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Tue, 26 Jul 2016 19:30:35 +0000 (21:30 +0200)
lib/common/mem.h

index 4d35f5ef994e856b87d9ccc94a1ea03f7998ba14..fc7b103e64afb2266de4f3e321a41f3a4bf316d1 100644 (file)
@@ -54,7 +54,7 @@ extern "C" {
 #   include <intrin.h>  /* _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 */
-