diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-12 09:48:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-12 09:48:29 +0100 |
commit | 931615a2e0c1069c161bf2c9516732f576f20ee3 (patch) | |
tree | 9a195f6cc8da39dcc64eb8984189589e5a974f10 /contrib/mumhash | |
parent | 25db12ee3fce3a41c1fd907373ead67015cef6ed (diff) | |
download | rspamd-931615a2e0c1069c161bf2c9516732f576f20ee3.tar.gz rspamd-931615a2e0c1069c161bf2c9516732f576f20ee3.zip |
[Feature] Further micro-optimizations for hashing and shingles
Diffstat (limited to 'contrib/mumhash')
-rw-r--r-- | contrib/mumhash/mum.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <stddef.h> #include <stdlib.h> #include <string.h> @@ -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) |