summaryrefslogtreecommitdiffstats
path: root/media-plugins/eq-xmms/files/eq-xmms-0.7-amd64_support.patch
blob: 7c1fd65858709a6ca4837464a9f94760e8080d12 (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
38
39
40
41
42
43
44
45
--- configure.in	2006-01-16 20:04:58.268962424 +0300
+++ configure.in	2006-01-16 20:07:43.681815848 +0300
@@ -155,6 +155,9 @@
               XF_CFLAGS="$XF_CFLAGS -DBENCHMARK"
             fi
           ;;
+	  x86_64-*-*)
+	    autodetect=no
+	    ARCH_DEFINES="-DARCH_X86_64 -march=k8"
         esac  
       ;;
       *)
--- src/iir.c	2006-01-16 20:01:23.000000000 +0300
+++ src/iir.c	2006-01-16 20:09:50.580524312 +0300
@@ -60,7 +60,7 @@
   clean_history();
 }
 
-#ifdef ARCH_X86
+#if defined(ARCH_X86) || defined(ARCH_X86_64)
 /* Round function provided by Frank Klemm which saves around 100K
  * CPU cycles in my PIII for each call to the IIR function with 4K samples
  */
--- src/iir_fpu.c	2006-01-15 03:26:32.000000000 +0300
+++ src/iir_fpu.c	2006-01-16 20:10:22.492672928 +0300
@@ -163,7 +163,7 @@
 #ifdef ARCH_PPC
       tempgint = round_ppc(out[channel]);
 #else
-#ifdef ARCH_X86
+#if defined(ARCH_X86) || defined(ARCH_X86_64)
       tempgint = round_trick(out[channel]);
 #else
       tempgint = (int)out[channel];
--- src/iir.h	2006-01-15 03:26:32.000000000 +0300
+++ src/iir.h	2006-01-16 20:15:35.987014544 +0300
@@ -58,7 +58,7 @@
 
 __inline__ int iir(gpointer * d, gint length, gint srate, gint nch);
 
-#ifdef ARCH_X86
+#if defined(ARCH_X86) || defined(ARCH_X86_64)
 __inline__ int round_trick(float floatvalue_to_round);
 #endif
 #ifdef ARCH_PPC