diff options
author | Duncan Bellamy <dunk@denkimushi.com> | 2022-01-22 11:41:53 +0000 |
---|---|---|
committer | Duncan Bellamy <dunk@denkimushi.com> | 2022-01-25 19:33:30 +0000 |
commit | 5c30f34906494a50f284bdd3a60168eb68aefac3 (patch) | |
tree | 2c4f8cc0baedd3cdf5591fa1e26d01ba0c4459c9 | |
parent | f90765d9c840b17ad68fe2f422807f70ab08ae41 (diff) | |
download | rspamd-5c30f34906494a50f284bdd3a60168eb68aefac3.tar.gz rspamd-5c30f34906494a50f284bdd3a60168eb68aefac3.zip |
[Feature] Allow hyperscan for ppc64, as vectorscan now suports it.
-rw-r--r-- | src/hs_helper.c | 2 | ||||
-rw-r--r-- | src/libserver/cfg_utils.c | 2 | ||||
-rw-r--r-- | src/libserver/maps/map_helpers.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c index e3c464786..d1bc36b81 100644 --- a/src/hs_helper.c +++ b/src/hs_helper.c @@ -303,7 +303,7 @@ static gboolean rspamd_rs_compile (struct hs_helper_ctx *ctx, struct rspamd_worker *worker, gboolean forced) { -#ifndef __aarch64__ +#if !defined(__aarch64__) && !defined(__powerpc64__) if (!(ctx->cfg->libs_ctx->crypto_ctx->cpu_config & CPUID_SSSE3)) { msg_warn ("CPU doesn't have SSSE3 instructions set " "required for hyperscan, disable hyperscan compilation"); diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 44cdbc84f..46ec5d5c6 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -817,7 +817,7 @@ rspamd_config_post_load (struct rspamd_config *cfg, rspamd_regexp_library_init (cfg); rspamd_multipattern_library_init (cfg->hs_cache_dir); -#if defined(WITH_HYPERSCAN) && !defined(__aarch64__) +#if defined(WITH_HYPERSCAN) && !defined(__aarch64__) && !defined(__powerpc64__) if (!cfg->disable_hyperscan) { if (!(cfg->libs_ctx->crypto_ctx->cpu_config & CPUID_SSSE3)) { msg_warn_config ("CPU doesn't have SSSE3 instructions set " diff --git a/src/libserver/maps/map_helpers.c b/src/libserver/maps/map_helpers.c index 4eb6b2fee..c7b3ce00c 100644 --- a/src/libserver/maps/map_helpers.c +++ b/src/libserver/maps/map_helpers.c @@ -1306,7 +1306,7 @@ rspamd_re_map_finalize (struct rspamd_regexp_map_helper *re_map) map = re_map->map; -#ifndef __aarch64__ +#if !defined(__aarch64__) && !defined(__powerpc64__) if (!(map->cfg->libs_ctx->crypto_ctx->cpu_config & CPUID_SSSE3)) { msg_info_map ("disable hyperscan for map %s, ssse3 instructons are not supported by CPU", map->name); |