File: sse2

package info (click to toggle)
haskell-vector 0.13.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 996 kB
  • sloc: haskell: 11,004; ansic: 6; makefile: 3
file content (40 lines) | stat: -rw-r--r-- 1,086 bytes parent folder | download
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
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

Index: b/vector.cabal
===================================================================
--- a/vector.cabal
+++ b/vector.cabal
@@ -147,6 +147,9 @@ Library
 
   Ghc-Options: -O2 -Wall
 
+  if arch(i386)
+    Ghc-Options: -msse2
+
   if !flag(Wall)
     Ghc-Options: -fno-warn-orphans
 
@@ -205,6 +208,9 @@ test-suite vector-tests-O0
   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)
@@ -247,6 +253,9 @@ test-suite vector-tests-O2
 
   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)