File: simde.patch

package info (click to toggle)
plast 2.3.2%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 16,312 kB
  • sloc: cpp: 28,979; ansic: 2,075; sh: 478; makefile: 73
file content (64 lines) | stat: -rw-r--r-- 1,572 bytes parent folder | download | duplicates (2)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Description: Use simde for wider portability
Author: Nilesh Patra <npatra974@gmail.com>
Forwarded: https://github.com/PLAST-software/plast-library/pull/8
Last-Update: 2020-12-06
--- a/src/algo/hits/gap/SmallGapHitIteratorSSE8.cpp
+++ b/src/algo/hits/gap/SmallGapHitIteratorSSE8.cpp
@@ -19,15 +19,8 @@
 
 #include <algo/hits/gap/SmallGapHitIteratorSSE8.hpp>
 
-#if __SSE3__
-    #include <pmmintrin.h>
-#else
-    #if __SSE2__
-        #include <emmintrin.h>
-    #else
-        #warning error undefined __SSE3__ or __SSE2__
-    #endif
-#endif
+#define SIMDE_ENABLE_NATIVE_ALIASES
+#include <simde/x86/sse3.h>
 
 using namespace std;
 using namespace misc;
--- a/src/algo/hits/ungap/UngapHitIteratorSSE16.cpp
+++ b/src/algo/hits/ungap/UngapHitIteratorSSE16.cpp
@@ -21,15 +21,8 @@
 
 #include <algo/hits/ungap/UngapHitIteratorSSE16.hpp>
 
-#if __SSE3__
-    #include <pmmintrin.h>
-#else
-#if __SSE2__
-    #include <emmintrin.h>
-#else
-    #warning error undefined __SSE3__ or __SSE2__
-#endif
-#endif
+#define SIMDE_ENABLE_NATIVE_ALIASES
+#include <simde/x86/sse3.h>
 
 using namespace std;
 using namespace misc;
--- a/src/algo/hits/ungap/UngapHitIteratorSSE8.cpp
+++ b/src/algo/hits/ungap/UngapHitIteratorSSE8.cpp
@@ -20,15 +20,8 @@
 
 #include <algo/hits/ungap/UngapHitIteratorSSE8.hpp>
 
-#if __SSE3__
-    #include <pmmintrin.h>
-#else
-#if __SSE2__
-    #include <emmintrin.h>
-#else
-    #warning error undefined __SSE3__ or __SSE2__
-#endif
-#endif
+#define SIMDE_ENABLE_NATIVE_ALIASES
+#include <simde/x86/sse3.h>
 
 using namespace std;
 using namespace misc;