aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/cryptobox.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-06 17:28:28 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-06 17:28:28 +0000
commit10888831dd7706ce58de3124a0502f5d0cd244e7 (patch)
treea095bc846a2ac0d31715ddf00dbec2b0e74878c0 /src/libcryptobox/cryptobox.h
parent84a551b5fb0d3c052b7f06a46400cc841ebba7c0 (diff)
downloadrspamd-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.h4
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