File: simde.patch

package info (click to toggle)
libssw 1.1-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 28,616 kB
  • sloc: ansic: 14,533; cpp: 493; python: 382; java: 136; makefile: 90; sh: 29
file content (35 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (3)
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
Author: Michael R. Crusoe <michael.crusoe@gmail.com>
Description: use the simde header library for greater compatibility
Forwarded: https://github.com/mengyao/Complete-Striped-Smith-Waterman-Library/pull/69
--- libssw.orig/src/ssw.c
+++ libssw/src/ssw.c
@@ -35,7 +35,8 @@
  *
  */
 
-#include <emmintrin.h>
+#define SIMDE_ENABLE_NATIVE_ALIASES
+#include <simde/x86/sse2.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include <stdio.h>
--- libssw.orig/src/ssw.h
+++ libssw/src/ssw.h
@@ -14,7 +14,6 @@
 #include <stdio.h>
 #include <stdint.h>
 #include <string.h>
-#include <emmintrin.h>
 
 #ifdef __cplusplus
 extern "C" {
--- libssw.orig/src/main.c
+++ libssw/src/main.c
@@ -6,7 +6,6 @@
 
 #include <stdlib.h>
 #include <stdint.h>
-#include <emmintrin.h>
 #include <zlib.h>
 #include <stdio.h>
 #include <time.h>