From 931615a2e0c1069c161bf2c9516732f576f20ee3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 12 May 2016 09:48:29 +0100 Subject: [Feature] Further micro-optimizations for hashing and shingles --- contrib/mumhash/mum.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'contrib/mumhash') diff --git a/contrib/mumhash/mum.h b/contrib/mumhash/mum.h index a9a661661..1daebf3de 100644 --- a/contrib/mumhash/mum.h +++ b/contrib/mumhash/mum.h @@ -43,6 +43,7 @@ #ifndef __MUM_HASH__ #define __MUM_HASH__ +#include "config.h" #include #include #include @@ -56,8 +57,8 @@ typedef unsigned __int64 uint64_t; #ifdef __GNUC__ #define _MUM_ATTRIBUTE_UNUSED __attribute__((unused)) -#define _MUM_OPTIMIZE(opts) __attribute__((__optimize__ (opts))) -#define _MUM_TARGET(opts) __attribute__((__target__ (opts))) +#define _MUM_OPTIMIZE(opts) RSPAMD_OPTIMIZE(opts) +#define _MUM_TARGET(opts) #else #define _MUM_ATTRIBUTE_UNUSED #define _MUM_OPTIMIZE(opts) -- cgit v1.2.3