summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_config.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-16 19:05:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-16 19:05:52 +0100
commit048c80ae85da8a987f18595e65622566dda1425c (patch)
tree4d3c429e0cbf6c34ad2c11793a172a41b4233c5c /src/lua/lua_config.c
parentd9942f8612540643141087a20ef2875becbe4c3d (diff)
downloadrspamd-048c80ae85da8a987f18595e65622566dda1425c.tar.gz
rspamd-048c80ae85da8a987f18595e65622566dda1425c.zip
[Minor] Disable sse4.2 for torch...
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r--src/lua/lua_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index d35cd84a6..aac585536 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -2892,11 +2892,11 @@ lua_config_has_torch (lua_State *L)
if (cfg != NULL) {
crypto_ctx = cfg->libs_ctx->crypto_ctx;
-#ifndef WITH_TORCH
+#if !defined(WITH_TORCH) || !defined(WITH_LUAJIT)
lua_pushboolean (L, false);
(void)crypto_ctx;
#else
- if (crypto_ctx->cpu_config & CPUID_SSE42) {
+ if (crypto_ctx->cpu_config & CPUID_SSE41) {
lua_pushboolean (L, true);
}
else {