Skip to content

Commit 1e9f977

Browse files
authored
thirdparty: update zstd patch with commit 8aa0369 (#26312)
1 parent 0a07d68 commit 1e9f977

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎thirdparty/zstd/zstd_v.patch‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- zstd.c 2025-05-30 16:39:46.374765970 +0800
2-
+++ zstd.c 2025-05-30 21:02:30.710831777 +0800
1+
--- zstd.c 2026-01-10 14:25:18.651952689 +0100
2+
+++ zstd.c 2026-01-09 17:55:20.698628329 +0100
33
@@ -50,6 +50,27 @@
44
/* TODO: Can't amalgamate ASM function */
55
#define ZSTD_DISABLE_ASM 1
@@ -28,6 +28,15 @@
2828
/* Include zstd_deps.h first with all the options we need enabled. */
2929
#define ZSTD_DEPS_NEED_MALLOC
3030
#define ZSTD_DEPS_NEED_MATH64
31+
@@ -698,7 +719,7 @@
32+
/* vectorization
33+
* older GCC (pre gcc-4.3 picked as the cutoff) uses a different syntax,
34+
* and some compilers, like Intel ICC and MCST LCC, do not support it at all. */
35+
-#if !defined(__INTEL_COMPILER) && !defined(__clang__) && defined(__GNUC__) && !defined(__LCC__)
36+
+#if !defined(__INTEL_COMPILER) && !defined(__clang__) && defined(__GNUC__) && !defined(__LCC__) && !defined(__TINYC__)
37+
# if (__GNUC__ == 4 && __GNUC_MINOR__ > 3) || (__GNUC__ >= 5)
38+
# define DONT_VECTORIZE __attribute__((optimize("no-tree-vectorize")))
39+
# else
3140
@@ -22353,7 +22374,7 @@
3241
ZSTD_GEN_RECORD_FINGERPRINT(43, 8)
3342

0 commit comments

Comments
 (0)