diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-06 17:28:28 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-06 17:28:28 +0000 |
commit | 10888831dd7706ce58de3124a0502f5d0cd244e7 (patch) | |
tree | a095bc846a2ac0d31715ddf00dbec2b0e74878c0 /src/libcryptobox/cryptobox.h | |
parent | 84a551b5fb0d3c052b7f06a46400cc841ebba7c0 (diff) | |
download | rspamd-10888831dd7706ce58de3124a0502f5d0cd244e7.tar.gz rspamd-10888831dd7706ce58de3124a0502f5d0cd244e7.zip |
[Feature] Add sse42 version of base64 decoding
Diffstat (limited to 'src/libcryptobox/cryptobox.h')
-rw-r--r-- | src/libcryptobox/cryptobox.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcryptobox/cryptobox.h b/src/libcryptobox/cryptobox.h index 601b2e505..a5a27f403 100644 --- a/src/libcryptobox/cryptobox.h +++ b/src/libcryptobox/cryptobox.h @@ -23,6 +23,10 @@ struct rspamd_cryptobox_segment { gsize len; }; +#if defined(__GNUC__) && ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8) || (__GNUC__ > 4)) +#define RSPAMD_HAS_TARGET_ATTR +#endif + #define rspamd_cryptobox_MAX_NONCEBYTES 24 #define rspamd_cryptobox_MAX_PKBYTES 65 #define rspamd_cryptobox_MAX_SKBYTES 32 |