Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/lang/bun/files/bun-libdeflate-adler32-disable-avx2.patch
49052 views
1
--- a/lib/x86/adler32_impl.h
2
+++ b/lib/x86/adler32_impl.h
3
@@ -40,6 +40,7 @@
4
# define USE_AVX512 0
5
# include "adler32_template.h"
6
7
+# ifndef LIBDEFLATE_DISABLE_SIMD_ABOVE_SSE2
8
# define adler32_x86_avx2 adler32_x86_avx2
9
# define SUFFIX _avx2
10
# define ATTRIBUTES _target_attribute("avx2")
11
@@ -47,6 +48,7 @@
12
# define USE_VNNI 0
13
# define USE_AVX512 0
14
# include "adler32_template.h"
15
+# endif /* !LIBDEFLATE_DISABLE_SIMD_ABOVE_SSE2 */
16
#endif
17
18
/*
19
@@ -61,7 +63,8 @@
20
* configure step, so checking the binutils version is not always an option.)
21
*/
22
#if (GCC_PREREQ(12, 1) || CLANG_PREREQ(12, 0, 13000000) || MSVC_PREREQ(1930)) && \
23
- !defined(LIBDEFLATE_ASSEMBLER_DOES_NOT_SUPPORT_AVX_VNNI)
24
+ !defined(LIBDEFLATE_ASSEMBLER_DOES_NOT_SUPPORT_AVX_VNNI) && \
25
+ !defined(LIBDEFLATE_DISABLE_SIMD_ABOVE_SSE2)
26
# define adler32_x86_avx2_vnni adler32_x86_avx2_vnni
27
# define SUFFIX _avx2_vnni
28
# define ATTRIBUTES _target_attribute("avx2,avxvnni")
29
30