mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-27 01:52:51 +08:00
16 lines
714 B
Diff
16 lines
714 B
Diff
From: Johannes Müller <alpinelinux@jogemu.at>
|
|
Date: Wed Aug 5 17:35:19 2026 +0000
|
|
Subject: Deactivate AVX2 dispatch on x86 due to unsupported _mm_extract_epi64
|
|
|
|
--- a/deps/histogram/src/hdr_histogram.c
|
|
+++ b/deps/histogram/src/hdr_histogram.c
|
|
@@ -36,7 +36,7 @@
|
|
|
|
/* Runtime-dispatched AVX2 path: keep the rest of this TU at the project's
|
|
baseline ISA so the shipped binary does not silently require AVX2. */
|
|
-#if (defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)) \
|
|
+#if (defined(__x86_64__) || defined(_M_X64)) \
|
|
&& (defined(__GNUC__) || defined(__clang__)) && !defined(__INTEL_COMPILER) && !defined(_MSC_VER)
|
|
# define HDR_HAS_AVX2_DISPATCH 1
|
|
# include <immintrin.h>
|