summaryrefslogtreecommitdiffstats
path: root/debian/patches/simdeverywhere.patch
blob: c683691e797435bc98ce0f8ef2ad80934a167bc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: fix SIMD
Author: Jérémy Lal
Forwarded: no
Last-Update: 2022-05-16

--- a/deps/llhttp/src/llhttp.c
+++ b/deps/llhttp/src/llhttp.c
@@ -4,13 +4,7 @@
 #include <stdint.h>
 #include <string.h>
 
-#ifdef __SSE4_2__
- #ifdef _MSC_VER
-  #include <nmmintrin.h>
- #else  /* !_MSC_VER */
-  #include <x86intrin.h>
- #endif  /* _MSC_VER */
-#endif  /* __SSE4_2__ */
+#include <simde/x86/sse4.2.h>
 
 #ifdef _MSC_VER
  #define ALIGN(n) _declspec(align(n))
@@ -7678,13 +7672,7 @@
 #include <stdint.h>
 #include <string.h>
 
-#ifdef __SSE4_2__
- #ifdef _MSC_VER
-  #include <nmmintrin.h>
- #else  /* !_MSC_VER */
-  #include <x86intrin.h>
- #endif  /* _MSC_VER */
-#endif  /* __SSE4_2__ */
+#include <simde/x86/sse4.2.h>
 
 #ifdef _MSC_VER
  #define ALIGN(n) _declspec(align(n))