* added the Unlicense as valid in misc/share/REGISTER
[t2sde.git] / package / archiver / zstd / i486-no-cpuid.patch
blob1c4a0999b1cb21dcc62fe7a903fdfa3e7c144212
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/zstd/i486-no-cpuid.patch
3 # Copyright (C) 2021 - 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- zstd-1.5.6/lib/common/cpu.h.orig 2024-03-27 15:40:19.864687115 +0100
15 +++ zstd-1.5.6/lib/common/cpu.h 2024-03-27 16:10:07.642597063 +0100
16 @@ -34,6 +34,7 @@
17 U32 f1d = 0;
18 U32 f7b = 0;
19 U32 f7c = 0;
20 +#ifdef __i486__
21 #if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))
22 #if !defined(__clang__)
23 int reg[4];
24 @@ -133,6 +134,7 @@
25 : "edx");
27 #endif
28 +#endif
30 ZSTD_cpuid_t cpuid;
31 cpuid.f1c = f1c;