aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-06 17:40:23 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-06 17:40:23 +0000
commit5840268601eec9e16a42395d60063afa5eb09628 (patch)
treed4a0b40c02e242ef09f56fb6b0ea327c41605a8e /src/libcryptobox
parent10888831dd7706ce58de3124a0502f5d0cd244e7 (diff)
downloadrspamd-5840268601eec9e16a42395d60063afa5eb09628.tar.gz
rspamd-5840268601eec9e16a42395d60063afa5eb09628.zip
[Minor] Fix build
Diffstat (limited to 'src/libcryptobox')
-rw-r--r--src/libcryptobox/base64/sse42.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libcryptobox/base64/sse42.c b/src/libcryptobox/base64/sse42.c
index 53af47342..ea5a6e1d6 100644
--- a/src/libcryptobox/base64/sse42.c
+++ b/src/libcryptobox/base64/sse42.c
@@ -49,6 +49,23 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
extern const uint8_t base64_table_dec[256];
#ifdef RSPAMD_HAS_TARGET_ATTR
+#pragma GCC push_options
+#pragma GCC target("sse4.2")
+#ifndef __SSE2__
+#define __SSE2__
+#endif
+#ifndef __SSE__
+#define __SSE__
+#endif
+#ifndef __SSE4_2__
+#define __SSE4_2__
+#endif
+#ifndef __SSE4_1__
+#define __SSE4_1__
+#endif
+#ifndef __SSEE3__
+#define __SSEE3__
+#endif
#include <xmmintrin.h>
#include <nmmintrin.h>
@@ -232,4 +249,6 @@ repeat:
return ret;
}
+
+#pragma GCC pop_options
#endif