File: sse2

package info (click to toggle)
haskell-vector 0.12.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 928 kB
  • sloc: haskell: 10,881; ansic: 15; makefile: 3
file content (38 lines) | stat: -rw-r--r-- 935 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
Description: Use SSE2 for floating-point operations on i386
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Forwarded: https://github.com/haskell/vector/pull/187
Bug: https://github.com/haskell/vector/issues/186
Bug-Debian: https://bugs.debian.org/875396

--- a/vector.cabal
+++ b/vector.cabal
@@ -162,6 +162,9 @@
 
   Ghc-Options: -O2 -Wall
 
+  if arch(i386)
+    Ghc-Options: -msse2
+
   if !flag(Wall)
     Ghc-Options: -fno-warn-orphans
 
@@ -220,6 +223,9 @@
   Ghc-Options: -O0 -threaded
   Ghc-Options: -Wall
 
+  if arch(i386)
+    Ghc-Options: -msse2
+
   if !flag(Wall)
     Ghc-Options: -fno-warn-orphans -fno-warn-missing-signatures
     if impl(ghc >= 8.0) && impl( ghc < 8.1)
@@ -263,6 +269,9 @@
 
   Ghc-Options: -Wall
   Ghc-Options:  -O2 -threaded
+  if arch(i386)
+    Ghc-Options: -msse2
+
   if !flag(Wall)
     Ghc-Options: -fno-warn-orphans -fno-warn-missing-signatures
     if impl(ghc >= 8.0) && impl(ghc < 8.1)