annotate liba52/liba52_amd64_changes.diff @ 18314:39f1bc23b65e

Fix amr_nb-fixed compilation: Don't depend on amr_nb.
author diego
date Thu, 27 Apr 2006 13:12:51 +0000
parents 92a5d524bf26
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16174
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1 Index: liba52/a52_internal.h
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2 ===================================================================
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
3 RCS file: /cvsroot/mplayer/main/liba52/a52_internal.h,v
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
4 retrieving revision 1.4
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
5 diff -u -r1.4 a52_internal.h
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
6 --- liba52/a52_internal.h 22 Mar 2005 23:27:18 -0000 1.4
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
7 +++ liba52/a52_internal.h 31 Jul 2005 21:20:09 -0000
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
8 @@ -41,6 +41,20 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
9 #define DELTA_BIT_NONE (2)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
10 #define DELTA_BIT_RESERVED (3)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
11
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
12 +#ifdef ARCH_X86_64
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
13 +# define REG_a "rax"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
14 +# define REG_d "rdx"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
15 +# define REG_S "rsi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
16 +# define REG_D "rdi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
17 +# define REG_BP "rbp"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
18 +#else
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
19 +# define REG_a "eax"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
20 +# define REG_d "edx"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
21 +# define REG_S "esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
22 +# define REG_D "edi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
23 +# define REG_BP "ebp"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
24 +#endif
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
25 +
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
26 void bit_allocate (a52_state_t * state, a52_ba_t * ba, int bndstart,
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
27 int start, int end, int fastleak, int slowleak,
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
28 uint8_t * exp, int8_t * bap);
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
29 Index: liba52/downmix.c
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
30 ===================================================================
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
31 RCS file: /cvsroot/mplayer/main/liba52/downmix.c,v
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
32 retrieving revision 1.17
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
33 diff -u -r1.17 downmix.c
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
34 --- liba52/downmix.c 22 Mar 2005 23:27:18 -0000 1.17
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
35 +++ liba52/downmix.c 31 Jul 2005 21:20:09 -0000
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
36 @@ -56,7 +56,7 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
37 {
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
38 upmix= upmix_C;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
39 downmix= downmix_C;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
40 -#ifdef ARCH_X86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
41 +#if defined(ARCH_X86) || defined(ARCH_X86_64)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
42 if(mm_accel & MM_ACCEL_X86_MMX) upmix= upmix_MMX;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
43 if(mm_accel & MM_ACCEL_X86_SSE) downmix= downmix_SSE;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
44 if(mm_accel & MM_ACCEL_X86_3DNOW) downmix= downmix_3dnow;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
45 @@ -684,27 +684,27 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
46 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
47 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
48
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
49 -#ifdef ARCH_X86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
50 +#if defined(ARCH_X86) || defined(ARCH_X86_64)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
51 static void mix2to1_SSE (sample_t * dest, sample_t * src, sample_t bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
52 {
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
53 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
54 "movlps %2, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
55 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
56 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
57 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
58 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
59 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
60 - "movaps (%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
61 - "movaps 16(%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
62 - "addps (%1, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
63 - "addps 16(%1, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
64 + "movaps (%0, %%"REG_S"), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
65 + "movaps 16(%0, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
66 + "addps (%1, %%"REG_S"), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
67 + "addps 16(%1, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
68 "addps %%xmm7, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
69 "addps %%xmm7, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
70 - "movaps %%xmm0, (%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
71 - "movaps %%xmm1, 16(%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
72 - "addl $32, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
73 + "movaps %%xmm0, (%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
74 + "movaps %%xmm1, 16(%1, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
75 + "add $32, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
76 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
77 :: "r" (src+256), "r" (dest+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
78 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
79 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
80 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
81 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
82
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
83 @@ -713,19 +713,19 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
84 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
85 "movlps %1, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
86 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
87 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
88 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
89 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
90 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
91 - "movaps (%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
92 - "movaps 1024(%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
93 - "addps 2048(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
94 + "movaps (%0, %%"REG_S"), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
95 + "movaps 1024(%0, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
96 + "addps 2048(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
97 "addps %%xmm7, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
98 "addps %%xmm1, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
99 - "movaps %%xmm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
100 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
101 + "movaps %%xmm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
102 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
103 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
104 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
105 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
106 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
107 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
108 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
109
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
110 @@ -734,20 +734,20 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
111 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
112 "movlps %1, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
113 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
114 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
115 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
116 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
117 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
118 - "movaps (%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
119 - "movaps 1024(%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
120 - "addps 2048(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
121 - "addps 3072(%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
122 + "movaps (%0, %%"REG_S"), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
123 + "movaps 1024(%0, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
124 + "addps 2048(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
125 + "addps 3072(%0, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
126 "addps %%xmm7, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
127 "addps %%xmm1, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
128 - "movaps %%xmm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
129 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
130 + "movaps %%xmm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
131 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
132 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
133 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
134 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
135 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
136 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
137 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
138
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
139 @@ -756,21 +756,21 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
140 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
141 "movlps %1, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
142 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
143 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
144 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
145 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
146 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
147 - "movaps (%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
148 - "movaps 1024(%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
149 - "addps 2048(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
150 - "addps 3072(%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
151 + "movaps (%0, %%"REG_S"), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
152 + "movaps 1024(%0, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
153 + "addps 2048(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
154 + "addps 3072(%0, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
155 "addps %%xmm7, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
156 - "addps 4096(%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
157 + "addps 4096(%0, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
158 "addps %%xmm1, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
159 - "movaps %%xmm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
160 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
161 + "movaps %%xmm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
162 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
163 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
164 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
165 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
166 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
167 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
168 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
169
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
170 @@ -779,21 +779,21 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
171 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
172 "movlps %1, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
173 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
174 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
175 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
176 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
177 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
178 - "movaps 1024(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
179 + "movaps 1024(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
180 "addps %%xmm7, %%xmm0 \n\t" //common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
181 - "movaps (%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
182 - "movaps 2048(%0, %%esi), %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
183 + "movaps (%0, %%"REG_S"), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
184 + "movaps 2048(%0, %%"REG_S"), %%xmm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
185 "addps %%xmm0, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
186 "addps %%xmm0, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
187 - "movaps %%xmm1, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
188 - "movaps %%xmm2, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
189 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
190 + "movaps %%xmm1, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
191 + "movaps %%xmm2, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
192 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
193 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
194 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
195 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
196 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
197 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
198 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
199
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
200 @@ -802,21 +802,21 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
201 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
202 "movlps %2, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
203 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
204 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
205 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
206 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
207 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
208 - "movaps 1024(%1, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
209 + "movaps 1024(%1, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
210 "addps %%xmm7, %%xmm0 \n\t" //common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
211 - "movaps (%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
212 - "movaps (%1, %%esi), %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
213 + "movaps (%0, %%"REG_S"), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
214 + "movaps (%1, %%"REG_S"), %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
215 "addps %%xmm0, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
216 "addps %%xmm0, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
217 - "movaps %%xmm1, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
218 - "movaps %%xmm2, (%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
219 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
220 + "movaps %%xmm1, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
221 + "movaps %%xmm2, (%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
222 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
223 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
224 :: "r" (left+256), "r" (right+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
225 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
226 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
227 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
228 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
229
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
230 @@ -825,22 +825,22 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
231 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
232 "movlps %1, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
233 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
234 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
235 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
236 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
237 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
238 - "movaps 2048(%0, %%esi), %%xmm0 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
239 - "movaps (%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
240 - "movaps 1024(%0, %%esi), %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
241 + "movaps 2048(%0, %%"REG_S"), %%xmm0\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
242 + "movaps (%0, %%"REG_S"), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
243 + "movaps 1024(%0, %%"REG_S"), %%xmm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
244 "addps %%xmm7, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
245 "addps %%xmm7, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
246 "subps %%xmm0, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
247 "addps %%xmm0, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
248 - "movaps %%xmm1, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
249 - "movaps %%xmm2, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
250 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
251 + "movaps %%xmm1, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
252 + "movaps %%xmm2, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
253 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
254 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
255 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
256 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
257 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
258 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
259 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
260
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
261 @@ -849,22 +849,22 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
262 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
263 "movlps %1, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
264 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
265 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
266 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
267 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
268 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
269 - "movaps 1024(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
270 - "addps 3072(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
271 + "movaps 1024(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
272 + "addps 3072(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
273 "addps %%xmm7, %%xmm0 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
274 - "movaps (%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
275 - "movaps 2048(%0, %%esi), %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
276 + "movaps (%0, %%"REG_S"), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
277 + "movaps 2048(%0, %%"REG_S"), %%xmm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
278 "addps %%xmm0, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
279 "addps %%xmm0, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
280 - "movaps %%xmm1, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
281 - "movaps %%xmm2, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
282 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
283 + "movaps %%xmm1, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
284 + "movaps %%xmm2, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
285 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
286 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
287 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
288 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
289 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
290 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
291 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
292
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
293 @@ -873,24 +873,24 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
294 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
295 "movlps %1, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
296 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
297 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
298 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
299 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
300 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
301 - "movaps 1024(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
302 - "movaps 3072(%0, %%esi), %%xmm3 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
303 + "movaps 1024(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
304 + "movaps 3072(%0, %%"REG_S"), %%xmm3\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
305 "addps %%xmm7, %%xmm0 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
306 - "movaps (%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
307 - "movaps 2048(%0, %%esi), %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
308 + "movaps (%0, %%"REG_S"), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
309 + "movaps 2048(%0, %%"REG_S"), %%xmm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
310 "addps %%xmm0, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
311 "addps %%xmm0, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
312 "subps %%xmm3, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
313 "addps %%xmm3, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
314 - "movaps %%xmm1, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
315 - "movaps %%xmm2, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
316 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
317 + "movaps %%xmm1, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
318 + "movaps %%xmm2, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
319 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
320 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
321 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
322 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
323 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
324 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
325 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
326
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
327 @@ -899,23 +899,23 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
328 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
329 "movlps %1, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
330 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
331 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
332 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
333 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
334 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
335 - "movaps 2048(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
336 - "addps 3072(%0, %%esi), %%xmm0 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
337 - "movaps (%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
338 - "movaps 1024(%0, %%esi), %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
339 + "movaps 2048(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
340 + "addps 3072(%0, %%"REG_S"), %%xmm0\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
341 + "movaps (%0, %%"REG_S"), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
342 + "movaps 1024(%0, %%"REG_S"), %%xmm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
343 "addps %%xmm7, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
344 "addps %%xmm7, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
345 "subps %%xmm0, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
346 "addps %%xmm0, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
347 - "movaps %%xmm1, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
348 - "movaps %%xmm2, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
349 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
350 + "movaps %%xmm1, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
351 + "movaps %%xmm2, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
352 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
353 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
354 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
355 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
356 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
357 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
358 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
359
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
360 @@ -924,22 +924,22 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
361 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
362 "movlps %1, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
363 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
364 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
365 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
366 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
367 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
368 - "movaps 1024(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
369 + "movaps 1024(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
370 "addps %%xmm7, %%xmm0 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
371 "movaps %%xmm0, %%xmm1 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
372 - "addps (%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
373 - "addps 2048(%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
374 - "addps 3072(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
375 - "addps 4096(%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
376 - "movaps %%xmm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
377 - "movaps %%xmm1, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
378 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
379 + "addps (%0, %%"REG_S"), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
380 + "addps 2048(%0, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
381 + "addps 3072(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
382 + "addps 4096(%0, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
383 + "movaps %%xmm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
384 + "movaps %%xmm1, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
385 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
386 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
387 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
388 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
389 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
390 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
391 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
392
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
393 @@ -948,25 +948,25 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
394 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
395 "movlps %1, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
396 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
397 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
398 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
399 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
400 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
401 - "movaps 1024(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
402 - "movaps 3072(%0, %%esi), %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
403 + "movaps 1024(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
404 + "movaps 3072(%0, %%"REG_S"), %%xmm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
405 "addps %%xmm7, %%xmm0 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
406 - "addps 4096(%0, %%esi), %%xmm2 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
407 - "movaps (%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
408 - "movaps 2048(%0, %%esi), %%xmm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
409 + "addps 4096(%0, %%"REG_S"), %%xmm2\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
410 + "movaps (%0, %%"REG_S"), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
411 + "movaps 2048(%0, %%"REG_S"), %%xmm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
412 "subps %%xmm2, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
413 "addps %%xmm2, %%xmm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
414 "addps %%xmm0, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
415 "addps %%xmm0, %%xmm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
416 - "movaps %%xmm1, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
417 - "movaps %%xmm3, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
418 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
419 + "movaps %%xmm1, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
420 + "movaps %%xmm3, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
421 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
422 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
423 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
424 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
425 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
426 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
427 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
428
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
429 @@ -975,40 +975,40 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
430 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
431 "movlps %2, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
432 "shufps $0x00, %%xmm7, %%xmm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
433 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
434 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
435 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
436 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
437 - "movaps (%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
438 - "movaps 16(%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
439 - "addps 1024(%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
440 - "addps 1040(%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
441 + "movaps (%0, %%"REG_S"), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
442 + "movaps 16(%0, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
443 + "addps 1024(%0, %%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
444 + "addps 1040(%0, %%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
445 "addps %%xmm7, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
446 "addps %%xmm7, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
447 - "movaps %%xmm0, (%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
448 - "movaps %%xmm1, 16(%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
449 - "addl $32, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
450 + "movaps %%xmm0, (%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
451 + "movaps %%xmm1, 16(%1, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
452 + "add $32, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
453 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
454 :: "r" (src+256), "r" (dest+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
455 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
456 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
457 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
458 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
459
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
460 static void zero_MMX(sample_t * samples)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
461 {
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
462 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
463 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
464 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
465 "pxor %%mm0, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
466 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
467 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
468 - "movq %%mm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
469 - "movq %%mm0, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
470 - "movq %%mm0, 16(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
471 - "movq %%mm0, 24(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
472 - "addl $32, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
473 + "movq %%mm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
474 + "movq %%mm0, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
475 + "movq %%mm0, 16(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
476 + "movq %%mm0, 24(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
477 + "add $32, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
478 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
479 "emms"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
480 :: "r" (samples+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
481 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
482 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
483 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
484 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
485
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
486 @@ -1257,29 +1257,29 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
487 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
488 "movd %2, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
489 "punpckldq %2, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
490 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
491 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
492 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
493 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
494 - "movq (%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
495 - "movq 8(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
496 - "movq 16(%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
497 - "movq 24(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
498 - "pfadd (%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
499 - "pfadd 8(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
500 - "pfadd 16(%1, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
501 - "pfadd 24(%1, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
502 + "movq (%0, %%"REG_S"), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
503 + "movq 8(%0, %%"REG_S"), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
504 + "movq 16(%0, %%"REG_S"), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
505 + "movq 24(%0, %%"REG_S"), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
506 + "pfadd (%1, %%"REG_S"), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
507 + "pfadd 8(%1, %%"REG_S"), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
508 + "pfadd 16(%1, %%"REG_S"), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
509 + "pfadd 24(%1, %%"REG_S"), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
510 "pfadd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
511 "pfadd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
512 "pfadd %%mm7, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
513 "pfadd %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
514 - "movq %%mm0, (%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
515 - "movq %%mm1, 8(%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
516 - "movq %%mm2, 16(%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
517 - "movq %%mm3, 24(%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
518 - "addl $32, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
519 + "movq %%mm0, (%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
520 + "movq %%mm1, 8(%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
521 + "movq %%mm2, 16(%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
522 + "movq %%mm3, 24(%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
523 + "add $32, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
524 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
525 :: "r" (src+256), "r" (dest+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
526 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
527 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
528 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
529 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
530
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
531 @@ -1288,25 +1288,25 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
532 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
533 "movd %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
534 "punpckldq %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
535 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
536 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
537 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
538 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
539 - "movq (%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
540 - "movq 8(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
541 - "movq 1024(%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
542 - "movq 1032(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
543 - "pfadd 2048(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
544 - "pfadd 2056(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
545 + "movq (%0, %%"REG_S"), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
546 + "movq 8(%0, %%"REG_S"), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
547 + "movq 1024(%0, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
548 + "movq 1032(%0, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
549 + "pfadd 2048(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
550 + "pfadd 2056(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
551 "pfadd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
552 "pfadd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
553 "pfadd %%mm2, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
554 "pfadd %%mm3, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
555 - "movq %%mm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
556 - "movq %%mm1, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
557 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
558 + "movq %%mm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
559 + "movq %%mm1, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
560 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
561 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
562 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
563 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
564 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
565 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
566 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
567
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
568 @@ -1315,27 +1315,27 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
569 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
570 "movd %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
571 "punpckldq %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
572 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
573 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
574 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
575 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
576 - "movq (%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
577 - "movq 8(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
578 - "movq 1024(%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
579 - "movq 1032(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
580 - "pfadd 2048(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
581 - "pfadd 2056(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
582 - "pfadd 3072(%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
583 - "pfadd 3080(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
584 + "movq (%0, %%"REG_S"), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
585 + "movq 8(%0, %%"REG_S"), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
586 + "movq 1024(%0, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
587 + "movq 1032(%0, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
588 + "pfadd 2048(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
589 + "pfadd 2056(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
590 + "pfadd 3072(%0, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
591 + "pfadd 3080(%0, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
592 "pfadd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
593 "pfadd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
594 "pfadd %%mm2, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
595 "pfadd %%mm3, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
596 - "movq %%mm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
597 - "movq %%mm1, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
598 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
599 + "movq %%mm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
600 + "movq %%mm1, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
601 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
602 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
603 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
604 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
605 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
606 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
607 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
608
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
609 @@ -1344,29 +1344,29 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
610 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
611 "movd %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
612 "punpckldq %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
613 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
614 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
615 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
616 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
617 - "movq (%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
618 - "movq 8(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
619 - "movq 1024(%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
620 - "movq 1032(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
621 - "pfadd 2048(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
622 - "pfadd 2056(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
623 - "pfadd 3072(%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
624 - "pfadd 3080(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
625 + "movq (%0, %%"REG_S"), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
626 + "movq 8(%0, %%"REG_S"), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
627 + "movq 1024(%0, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
628 + "movq 1032(%0, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
629 + "pfadd 2048(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
630 + "pfadd 2056(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
631 + "pfadd 3072(%0, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
632 + "pfadd 3080(%0, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
633 "pfadd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
634 "pfadd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
635 - "pfadd 4096(%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
636 - "pfadd 4104(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
637 + "pfadd 4096(%0, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
638 + "pfadd 4104(%0, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
639 "pfadd %%mm2, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
640 "pfadd %%mm3, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
641 - "movq %%mm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
642 - "movq %%mm1, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
643 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
644 + "movq %%mm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
645 + "movq %%mm1, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
646 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
647 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
648 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
649 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
650 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
651 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
652 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
653
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
654 @@ -1375,29 +1375,29 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
655 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
656 "movd %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
657 "punpckldq %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
658 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
659 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
660 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
661 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
662 - "movq 1024(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
663 - "movq 1032(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
664 + "movq 1024(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
665 + "movq 1032(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
666 "pfadd %%mm7, %%mm0 \n\t" //common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
667 "pfadd %%mm7, %%mm1 \n\t" //common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
668 - "movq (%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
669 - "movq 8(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
670 - "movq 2048(%0, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
671 - "movq 2056(%0, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
672 + "movq (%0, %%"REG_S"), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
673 + "movq 8(%0, %%"REG_S"), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
674 + "movq 2048(%0, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
675 + "movq 2056(%0, %%"REG_S"), %%mm5\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
676 "pfadd %%mm0, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
677 "pfadd %%mm1, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
678 "pfadd %%mm0, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
679 "pfadd %%mm1, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
680 - "movq %%mm2, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
681 - "movq %%mm3, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
682 - "movq %%mm4, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
683 - "movq %%mm5, 1032(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
684 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
685 + "movq %%mm2, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
686 + "movq %%mm3, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
687 + "movq %%mm4, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
688 + "movq %%mm5, 1032(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
689 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
690 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
691 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
692 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
693 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
694 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
695 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
696
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
697 @@ -1406,29 +1406,29 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
698 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
699 "movd %2, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
700 "punpckldq %2, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
701 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
702 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
703 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
704 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
705 - "movq 1024(%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
706 - "movq 1032(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
707 + "movq 1024(%1, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
708 + "movq 1032(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
709 "pfadd %%mm7, %%mm0 \n\t" //common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
710 "pfadd %%mm7, %%mm1 \n\t" //common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
711 - "movq (%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
712 - "movq 8(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
713 - "movq (%1, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
714 - "movq 8(%1, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
715 + "movq (%0, %%"REG_S"), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
716 + "movq 8(%0, %%"REG_S"), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
717 + "movq (%1, %%"REG_S"), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
718 + "movq 8(%1, %%"REG_S"), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
719 "pfadd %%mm0, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
720 "pfadd %%mm1, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
721 "pfadd %%mm0, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
722 "pfadd %%mm1, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
723 - "movq %%mm2, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
724 - "movq %%mm3, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
725 - "movq %%mm4, (%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
726 - "movq %%mm5, 8(%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
727 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
728 + "movq %%mm2, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
729 + "movq %%mm3, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
730 + "movq %%mm4, (%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
731 + "movq %%mm5, 8(%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
732 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
733 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
734 :: "r" (left+256), "r" (right+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
735 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
736 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
737 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
738 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
739
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
740 @@ -1437,15 +1437,15 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
741 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
742 "movd %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
743 "punpckldq %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
744 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
745 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
746 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
747 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
748 - "movq 2048(%0, %%esi), %%mm0 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
749 - "movq 2056(%0, %%esi), %%mm1 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
750 - "movq (%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
751 - "movq 8(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
752 - "movq 1024(%0, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
753 - "movq 1032(%0, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
754 + "movq 2048(%0, %%"REG_S"), %%mm0\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
755 + "movq 2056(%0, %%"REG_S"), %%mm1\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
756 + "movq (%0, %%"REG_S"), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
757 + "movq 8(%0, %%"REG_S"), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
758 + "movq 1024(%0, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
759 + "movq 1032(%0, %%"REG_S"), %%mm5\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
760 "pfadd %%mm7, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
761 "pfadd %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
762 "pfadd %%mm7, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
763 @@ -1454,14 +1454,14 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
764 "pfsub %%mm1, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
765 "pfadd %%mm0, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
766 "pfadd %%mm1, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
767 - "movq %%mm2, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
768 - "movq %%mm3, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
769 - "movq %%mm4, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
770 - "movq %%mm5, 1032(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
771 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
772 + "movq %%mm2, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
773 + "movq %%mm3, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
774 + "movq %%mm4, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
775 + "movq %%mm5, 1032(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
776 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
777 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
778 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
779 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
780 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
781 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
782 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
783
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
784 @@ -1470,31 +1470,31 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
785 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
786 "movd %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
787 "punpckldq %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
788 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
789 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
790 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
791 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
792 - "movq 1024(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
793 - "movq 1032(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
794 - "pfadd 3072(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
795 - "pfadd 3080(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
796 + "movq 1024(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
797 + "movq 1032(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
798 + "pfadd 3072(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
799 + "pfadd 3080(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
800 "pfadd %%mm7, %%mm0 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
801 "pfadd %%mm7, %%mm1 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
802 - "movq (%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
803 - "movq 8(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
804 - "movq 2048(%0, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
805 - "movq 2056(%0, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
806 + "movq (%0, %%"REG_S"), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
807 + "movq 8(%0, %%"REG_S"), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
808 + "movq 2048(%0, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
809 + "movq 2056(%0, %%"REG_S"), %%mm5\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
810 "pfadd %%mm0, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
811 "pfadd %%mm1, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
812 "pfadd %%mm0, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
813 "pfadd %%mm1, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
814 - "movq %%mm2, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
815 - "movq %%mm3, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
816 - "movq %%mm4, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
817 - "movq %%mm5, 1032(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
818 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
819 + "movq %%mm2, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
820 + "movq %%mm3, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
821 + "movq %%mm4, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
822 + "movq %%mm5, 1032(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
823 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
824 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
825 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
826 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
827 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
828 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
829 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
830
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
831 @@ -1503,35 +1503,35 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
832 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
833 "movd %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
834 "punpckldq %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
835 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
836 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
837 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
838 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
839 - "movq 1024(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
840 - "movq 1032(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
841 + "movq 1024(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
842 + "movq 1032(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
843 "pfadd %%mm7, %%mm0 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
844 "pfadd %%mm7, %%mm1 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
845 - "movq (%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
846 - "movq 8(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
847 - "movq 2048(%0, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
848 - "movq 2056(%0, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
849 + "movq (%0, %%"REG_S"), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
850 + "movq 8(%0, %%"REG_S"), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
851 + "movq 2048(%0, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
852 + "movq 2056(%0, %%"REG_S"), %%mm5\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
853 "pfadd %%mm0, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
854 "pfadd %%mm1, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
855 "pfadd %%mm0, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
856 "pfadd %%mm1, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
857 - "movq 3072(%0, %%esi), %%mm0 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
858 - "movq 3080(%0, %%esi), %%mm1 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
859 + "movq 3072(%0, %%"REG_S"), %%mm0\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
860 + "movq 3080(%0, %%"REG_S"), %%mm1\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
861 "pfsub %%mm0, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
862 "pfsub %%mm1, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
863 "pfadd %%mm0, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
864 "pfadd %%mm1, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
865 - "movq %%mm2, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
866 - "movq %%mm3, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
867 - "movq %%mm4, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
868 - "movq %%mm5, 1032(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
869 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
870 + "movq %%mm2, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
871 + "movq %%mm3, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
872 + "movq %%mm4, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
873 + "movq %%mm5, 1032(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
874 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
875 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
876 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
877 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
878 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
879 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
880 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
881
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
882 @@ -1540,17 +1540,17 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
883 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
884 "movd %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
885 "punpckldq %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
886 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
887 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
888 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
889 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
890 - "movq 2048(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
891 - "movq 2056(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
892 - "pfadd 3072(%0, %%esi), %%mm0 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
893 - "pfadd 3080(%0, %%esi), %%mm1 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
894 - "movq (%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
895 - "movq 8(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
896 - "movq 1024(%0, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
897 - "movq 1032(%0, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
898 + "movq 2048(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
899 + "movq 2056(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
900 + "pfadd 3072(%0, %%"REG_S"), %%mm0\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
901 + "pfadd 3080(%0, %%"REG_S"), %%mm1\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
902 + "movq (%0, %%"REG_S"), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
903 + "movq 8(%0, %%"REG_S"), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
904 + "movq 1024(%0, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
905 + "movq 1032(%0, %%"REG_S"), %%mm5\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
906 "pfadd %%mm7, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
907 "pfadd %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
908 "pfadd %%mm7, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
909 @@ -1559,14 +1559,14 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
910 "pfsub %%mm1, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
911 "pfadd %%mm0, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
912 "pfadd %%mm1, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
913 - "movq %%mm2, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
914 - "movq %%mm3, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
915 - "movq %%mm4, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
916 - "movq %%mm5, 1032(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
917 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
918 + "movq %%mm2, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
919 + "movq %%mm3, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
920 + "movq %%mm4, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
921 + "movq %%mm5, 1032(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
922 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
923 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
924 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
925 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
926 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
927 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
928 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
929
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
930 @@ -1575,31 +1575,31 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
931 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
932 "movd %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
933 "punpckldq %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
934 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
935 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
936 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
937 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
938 - "movq 1024(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
939 - "movq 1032(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
940 + "movq 1024(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
941 + "movq 1032(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
942 "pfadd %%mm7, %%mm0 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
943 "pfadd %%mm7, %%mm1 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
944 "movq %%mm0, %%mm2 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
945 "movq %%mm1, %%mm3 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
946 - "pfadd (%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
947 - "pfadd 8(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
948 - "pfadd 2048(%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
949 - "pfadd 2056(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
950 - "pfadd 3072(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
951 - "pfadd 3080(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
952 - "pfadd 4096(%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
953 - "pfadd 4104(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
954 - "movq %%mm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
955 - "movq %%mm1, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
956 - "movq %%mm2, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
957 - "movq %%mm3, 1032(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
958 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
959 + "pfadd (%0, %%"REG_S"), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
960 + "pfadd 8(%0, %%"REG_S"), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
961 + "pfadd 2048(%0, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
962 + "pfadd 2056(%0, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
963 + "pfadd 3072(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
964 + "pfadd 3080(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
965 + "pfadd 4096(%0, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
966 + "pfadd 4104(%0, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
967 + "movq %%mm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
968 + "movq %%mm1, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
969 + "movq %%mm2, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
970 + "movq %%mm3, 1032(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
971 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
972 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
973 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
974 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
975 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
976 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
977 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
978
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
979 @@ -1607,23 +1607,23 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
980 static void mix32toS_3dnow (sample_t * samples, sample_t bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
981 {
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
982 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
983 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
984 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
985 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
986 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
987 "movd %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
988 "punpckldq %1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
989 - "movq 1024(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
990 - "movq 1032(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
991 - "movq 3072(%0, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
992 - "movq 3080(%0, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
993 + "movq 1024(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
994 + "movq 1032(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
995 + "movq 3072(%0, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
996 + "movq 3080(%0, %%"REG_S"), %%mm5\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
997 "pfadd %%mm7, %%mm0 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
998 "pfadd %%mm7, %%mm1 \n\t" // common
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
999 - "pfadd 4096(%0, %%esi), %%mm4 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1000 - "pfadd 4104(%0, %%esi), %%mm5 \n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1001 - "movq (%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1002 - "movq 8(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1003 - "movq 2048(%0, %%esi), %%mm6 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1004 - "movq 2056(%0, %%esi), %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1005 + "pfadd 4096(%0, %%"REG_S"), %%mm4\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1006 + "pfadd 4104(%0, %%"REG_S"), %%mm5\n\t" // surround
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1007 + "movq (%0, %%"REG_S"), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1008 + "movq 8(%0, %%"REG_S"), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1009 + "movq 2048(%0, %%"REG_S"), %%mm6\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1010 + "movq 2056(%0, %%"REG_S"), %%mm7\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1011 "pfsub %%mm4, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1012 "pfsub %%mm5, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1013 "pfadd %%mm4, %%mm6 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1014 @@ -1632,14 +1632,14 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1015 "pfadd %%mm1, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1016 "pfadd %%mm0, %%mm6 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1017 "pfadd %%mm1, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1018 - "movq %%mm2, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1019 - "movq %%mm3, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1020 - "movq %%mm6, 1024(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1021 - "movq %%mm7, 1032(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1022 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1023 + "movq %%mm2, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1024 + "movq %%mm3, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1025 + "movq %%mm6, 1024(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1026 + "movq %%mm7, 1032(%0, %%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1027 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1028 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1029 :: "r" (samples+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1030 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1031 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1032 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1033 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1034
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1035 @@ -1648,29 +1648,29 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1036 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1037 "movd %2, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1038 "punpckldq %2, %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1039 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1040 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1041 ".balign 16\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1042 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1043 - "movq (%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1044 - "movq 8(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1045 - "movq 16(%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1046 - "movq 24(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1047 - "pfadd 1024(%0, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1048 - "pfadd 1032(%0, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1049 - "pfadd 1040(%0, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1050 - "pfadd 1048(%0, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1051 + "movq (%0, %%"REG_S"), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1052 + "movq 8(%0, %%"REG_S"), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1053 + "movq 16(%0, %%"REG_S"), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1054 + "movq 24(%0, %%"REG_S"), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1055 + "pfadd 1024(%0, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1056 + "pfadd 1032(%0, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1057 + "pfadd 1040(%0, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1058 + "pfadd 1048(%0, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1059 "pfadd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1060 "pfadd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1061 "pfadd %%mm7, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1062 "pfadd %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1063 - "movq %%mm0, (%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1064 - "movq %%mm1, 8(%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1065 - "movq %%mm2, 16(%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1066 - "movq %%mm3, 24(%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1067 - "addl $32, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1068 + "movq %%mm0, (%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1069 + "movq %%mm1, 8(%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1070 + "movq %%mm2, 16(%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1071 + "movq %%mm3, 24(%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1072 + "add $32, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1073 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1074 :: "r" (src+256), "r" (dest+256), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1075 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1076 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1077 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1078 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1079
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1080 @@ -1816,4 +1816,4 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1081 __asm __volatile("femms":::"memory");
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1082 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1083
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1084 -#endif //ARCH_X86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1085 +#endif // ARCH_X86 || ARCH_X86_64
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1086 Index: liba52/imdct.c
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1087 ===================================================================
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1088 RCS file: /cvsroot/mplayer/main/liba52/imdct.c,v
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1089 retrieving revision 1.27
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1090 diff -u -r1.27 imdct.c
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1091 --- liba52/imdct.c 2 Jun 2005 20:54:02 -0000 1.27
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1092 +++ liba52/imdct.c 31 Jul 2005 21:20:09 -0000
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1093 @@ -101,7 +101,7 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1094 0x03, 0x23, 0x13, 0x33, 0x0b, 0x2b, 0x1b, 0x3b,
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1095 0x07, 0x27, 0x17, 0x37, 0x0f, 0x2f, 0x1f, 0x3f};
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1096
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1097 -#ifdef ARCH_X86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1098 +#if defined(ARCH_X86) || defined(ARCH_X86_64)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1099 // NOTE: SSE needs 16byte alignment or it will segfault
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1100 //
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1101 static complex_t __attribute__((aligned(16))) buf[128];
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1102 @@ -442,8 +442,8 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1103 int k;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1104 int p,q;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1105 int m;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1106 - int two_m;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1107 - int two_m_plus_one;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1108 + long two_m;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1109 + long two_m_plus_one;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1110
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1111 sample_t tmp_b_i;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1112 sample_t tmp_b_r;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1113 @@ -747,7 +747,7 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1114
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1115 // Stuff below this line is borrowed from libac3
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1116 #include "srfftp.h"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1117 -#ifdef ARCH_X86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1118 +#if defined(ARCH_X86) || defined(ARCH_X86_64)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1119 #ifndef HAVE_3DNOW
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1120 #define HAVE_3DNOW 1
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1121 #endif
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1122 @@ -768,9 +768,9 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1123 /* int i,k;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1124 int p,q;*/
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1125 int m;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1126 - int two_m;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1127 - int two_m_plus_one;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1128 - int two_m_plus_one_shl3;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1129 + long two_m;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1130 + long two_m_plus_one;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1131 + long two_m_plus_one_shl3;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1132 complex_t *buf_offset;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1133
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1134 /* sample_t tmp_a_i;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1135 @@ -788,33 +788,33 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1136 /* Pre IFFT complex multiply plus IFFT cmplx conjugate */
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1137 /* Bit reversed shuffling */
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1138 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1139 - "xorl %%esi, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1140 - "leal "MANGLE(bit_reverse_512)", %%eax \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1141 - "movl $1008, %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1142 - "pushl %%ebp \n\t" //use ebp without telling gcc
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1143 + "xor %%"REG_S", %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1144 + "lea "MANGLE(bit_reverse_512)", %%"REG_a"\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1145 + "mov $1008, %%"REG_D" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1146 + "push %%"REG_BP" \n\t" //use ebp without telling gcc
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1147 ".balign 16 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1148 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1149 - "movlps (%0, %%esi), %%xmm0 \n\t" // XXXI
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1150 - "movhps 8(%0, %%edi), %%xmm0 \n\t" // RXXI
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1151 - "movlps 8(%0, %%esi), %%xmm1 \n\t" // XXXi
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1152 - "movhps (%0, %%edi), %%xmm1 \n\t" // rXXi
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1153 + "movlps (%0, %%"REG_S"), %%xmm0 \n\t" // XXXI
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1154 + "movhps 8(%0, %%"REG_D"), %%xmm0 \n\t" // RXXI
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1155 + "movlps 8(%0, %%"REG_S"), %%xmm1 \n\t" // XXXi
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1156 + "movhps (%0, %%"REG_D"), %%xmm1 \n\t" // rXXi
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1157 "shufps $0x33, %%xmm1, %%xmm0 \n\t" // irIR
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1158 - "movaps "MANGLE(sseSinCos1c)"(%%esi), %%xmm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1159 + "movaps "MANGLE(sseSinCos1c)"(%%"REG_S"), %%xmm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1160 "mulps %%xmm0, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1161 "shufps $0xB1, %%xmm0, %%xmm0 \n\t" // riRI
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1162 - "mulps "MANGLE(sseSinCos1d)"(%%esi), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1163 + "mulps "MANGLE(sseSinCos1d)"(%%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1164 "subps %%xmm0, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1165 - "movzbl (%%eax), %%edx \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1166 - "movzbl 1(%%eax), %%ebp \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1167 - "movlps %%xmm2, (%1, %%edx,8) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1168 - "movhps %%xmm2, (%1, %%ebp,8) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1169 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1170 - "addl $2, %%eax \n\t" // avoid complex addressing for P4 crap
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1171 - "subl $16, %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1172 - " jnc 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1173 - "popl %%ebp \n\t"//no we didnt touch ebp *g*
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1174 - :: "b" (data), "c" (buf)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1175 - : "%esi", "%edi", "%eax", "%edx"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1176 + "movzb (%%"REG_a"), %%"REG_d" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1177 + "movzb 1(%%"REG_a"), %%"REG_BP" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1178 + "movlps %%xmm2, (%1, %%"REG_d", 8) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1179 + "movhps %%xmm2, (%1, %%"REG_BP", 8) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1180 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1181 + "add $2, %%"REG_a" \n\t" // avoid complex addressing for P4 crap
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1182 + "sub $16, %%"REG_D" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1183 + "jnc 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1184 + "pop %%"REG_BP" \n\t"//no we didnt touch ebp *g*
16191
92a5d524bf26 sync liba52_amd64_changes.diff with latest fix
aurel
parents: 16174
diff changeset
1185 + :: "b" (data), "c" (buf)
16174
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1186 + : "%"REG_S, "%"REG_D, "%"REG_a, "%"REG_d
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1187 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1188
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1189
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1190 @@ -850,44 +850,44 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1191 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1192 "xorps %%xmm1, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1193 "xorps %%xmm2, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1194 - "movl %0, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1195 + "mov %0, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1196 ".balign 16 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1197 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1198 - "movlps (%%esi), %%xmm0 \n\t" //buf[p]
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1199 - "movlps 8(%%esi), %%xmm1\n\t" //buf[q]
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1200 - "movhps (%%esi), %%xmm0 \n\t" //buf[p]
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1201 - "movhps 8(%%esi), %%xmm2\n\t" //buf[q]
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1202 + "movlps (%%"REG_S"), %%xmm0\n\t" //buf[p]
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1203 + "movlps 8(%%"REG_S"), %%xmm1\n\t" //buf[q]
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1204 + "movhps (%%"REG_S"), %%xmm0\n\t" //buf[p]
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1205 + "movhps 8(%%"REG_S"), %%xmm2\n\t" //buf[q]
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1206 "addps %%xmm1, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1207 "subps %%xmm2, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1208 - "movaps %%xmm0, (%%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1209 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1210 - "cmpl %1, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1211 + "movaps %%xmm0, (%%"REG_S")\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1212 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1213 + "cmp %1, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1214 " jb 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1215 :: "g" (buf), "r" (buf + 128)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1216 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1217 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1218 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1219
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1220 /* 2. iteration */
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1221 // Note w[1]={{1,0}, {0,-1}}
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1222 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1223 "movaps "MANGLE(ps111_1)", %%xmm7\n\t" // 1,1,1,-1
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1224 - "movl %0, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1225 + "mov %0, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1226 ".balign 16 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1227 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1228 - "movaps 16(%%esi), %%xmm2 \n\t" //r2,i2,r3,i3
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1229 + "movaps 16(%%"REG_S"), %%xmm2 \n\t" //r2,i2,r3,i3
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1230 "shufps $0xB4, %%xmm2, %%xmm2 \n\t" //r2,i2,i3,r3
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1231 "mulps %%xmm7, %%xmm2 \n\t" //r2,i2,i3,-r3
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1232 - "movaps (%%esi), %%xmm0 \n\t" //r0,i0,r1,i1
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1233 - "movaps (%%esi), %%xmm1 \n\t" //r0,i0,r1,i1
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1234 + "movaps (%%"REG_S"), %%xmm0 \n\t" //r0,i0,r1,i1
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1235 + "movaps (%%"REG_S"), %%xmm1 \n\t" //r0,i0,r1,i1
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1236 "addps %%xmm2, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1237 "subps %%xmm2, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1238 - "movaps %%xmm0, (%%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1239 - "movaps %%xmm1, 16(%%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1240 - "addl $32, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1241 - "cmpl %1, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1242 + "movaps %%xmm0, (%%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1243 + "movaps %%xmm1, 16(%%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1244 + "add $32, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1245 + "cmp %1, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1246 " jb 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1247 :: "g" (buf), "r" (buf + 128)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1248 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1249 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1250 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1251
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1252 /* 3. iteration */
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1253 @@ -902,11 +902,11 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1254 "movaps 16+"MANGLE(sseW2)", %%xmm7\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1255 "xorps %%xmm5, %%xmm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1256 "xorps %%xmm2, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1257 - "movl %0, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1258 + "mov %0, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1259 ".balign 16 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1260 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1261 - "movaps 32(%%esi), %%xmm2 \n\t" //r4,i4,r5,i5
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1262 - "movaps 48(%%esi), %%xmm3 \n\t" //r6,i6,r7,i7
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1263 + "movaps 32(%%"REG_S"), %%xmm2 \n\t" //r4,i4,r5,i5
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1264 + "movaps 48(%%"REG_S"), %%xmm3 \n\t" //r6,i6,r7,i7
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1265 "movaps "MANGLE(sseW2)", %%xmm4 \n\t" //r4,i4,r5,i5
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1266 "movaps 32+"MANGLE(sseW2)", %%xmm5\n\t" //r6,i6,r7,i7
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1267 "mulps %%xmm2, %%xmm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1268 @@ -915,8 +915,8 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1269 "shufps $0xB1, %%xmm3, %%xmm3 \n\t" //i6,r6,i7,r7
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1270 "mulps %%xmm6, %%xmm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1271 "mulps %%xmm7, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1272 - "movaps (%%esi), %%xmm0 \n\t" //r0,i0,r1,i1
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1273 - "movaps 16(%%esi), %%xmm1 \n\t" //r2,i2,r3,i3
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1274 + "movaps (%%"REG_S"), %%xmm0 \n\t" //r0,i0,r1,i1
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1275 + "movaps 16(%%"REG_S"), %%xmm1 \n\t" //r2,i2,r3,i3
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1276 "addps %%xmm4, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1277 "addps %%xmm5, %%xmm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1278 "movaps %%xmm2, %%xmm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1279 @@ -925,15 +925,15 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1280 "addps %%xmm1, %%xmm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1281 "subps %%xmm4, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1282 "subps %%xmm5, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1283 - "movaps %%xmm2, (%%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1284 - "movaps %%xmm3, 16(%%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1285 - "movaps %%xmm0, 32(%%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1286 - "movaps %%xmm1, 48(%%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1287 - "addl $64, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1288 - "cmpl %1, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1289 + "movaps %%xmm2, (%%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1290 + "movaps %%xmm3, 16(%%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1291 + "movaps %%xmm0, 32(%%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1292 + "movaps %%xmm1, 48(%%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1293 + "add $64, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1294 + "cmp %1, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1295 " jb 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1296 :: "g" (buf), "r" (buf + 128)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1297 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1298 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1299 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1300
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1301 /* 4-7. iterations */
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1302 @@ -943,52 +943,52 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1303 two_m_plus_one_shl3 = (two_m_plus_one<<3);
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1304 buf_offset = buf+128;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1305 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1306 - "movl %0, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1307 + "mov %0, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1308 ".balign 16 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1309 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1310 - "xorl %%edi, %%edi \n\t" // k
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1311 - "leal (%%esi, %3), %%edx \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1312 + "xor %%"REG_D", %%"REG_D" \n\t" // k
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1313 + "lea (%%"REG_S", %3), %%"REG_d" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1314 "2: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1315 - "movaps (%%edx, %%edi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1316 - "movaps (%4, %%edi, 2), %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1317 + "movaps (%%"REG_d", %%"REG_D"), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1318 + "movaps (%4, %%"REG_D", 2), %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1319 "mulps %%xmm1, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1320 "shufps $0xB1, %%xmm1, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1321 - "mulps 16(%4, %%edi, 2), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1322 - "movaps (%%esi, %%edi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1323 + "mulps 16(%4, %%"REG_D", 2), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1324 + "movaps (%%"REG_S", %%"REG_D"), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1325 "addps %%xmm2, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1326 "movaps %%xmm1, %%xmm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1327 "addps %%xmm0, %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1328 "subps %%xmm2, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1329 - "movaps %%xmm1, (%%esi, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1330 - "movaps %%xmm0, (%%edx, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1331 - "addl $16, %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1332 - "cmpl %3, %%edi \n\t" //FIXME (opt) count against 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1333 - " jb 2b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1334 - "addl %2, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1335 - "cmpl %1, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1336 + "movaps %%xmm1, (%%"REG_S", %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1337 + "movaps %%xmm0, (%%"REG_d", %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1338 + "add $16, %%"REG_D" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1339 + "cmp %3, %%"REG_D" \n\t" //FIXME (opt) count against 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1340 + "jb 2b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1341 + "add %2, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1342 + "cmp %1, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1343 " jb 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1344 :: "g" (buf), "m" (buf_offset), "m" (two_m_plus_one_shl3), "r" (two_m<<3),
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1345 "r" (sseW[m])
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1346 - : "%esi", "%edi", "%edx"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1347 + : "%"REG_S, "%"REG_D, "%"REG_d
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1348 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1349 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1350
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1351 /* Post IFFT complex multiply plus IFFT complex conjugate*/
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1352 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1353 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1354 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1355 ".balign 16 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1356 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1357 - "movaps (%0, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1358 - "movaps (%0, %%esi), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1359 + "movaps (%0, %%"REG_S"), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1360 + "movaps (%0, %%"REG_S"), %%xmm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1361 "shufps $0xB1, %%xmm0, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1362 - "mulps 1024+"MANGLE(sseSinCos1c)"(%%esi), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1363 - "mulps 1024+"MANGLE(sseSinCos1d)"(%%esi), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1364 + "mulps 1024+"MANGLE(sseSinCos1c)"(%%"REG_S"), %%xmm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1365 + "mulps 1024+"MANGLE(sseSinCos1d)"(%%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1366 "addps %%xmm1, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1367 - "movaps %%xmm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1368 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1369 + "movaps %%xmm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1370 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1371 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1372 :: "r" (buf+128)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1373 - : "%esi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1374 + : "%"REG_S
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1375 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1376
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1377
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1378 @@ -998,54 +998,54 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1379
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1380 /* Window and convert to real valued signal */
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1381 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1382 - "xorl %%edi, %%edi \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1383 - "xorl %%esi, %%esi \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1384 + "xor %%"REG_D", %%"REG_D" \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1385 + "xor %%"REG_S", %%"REG_S" \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1386 "movss %3, %%xmm2 \n\t" // bias
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1387 "shufps $0x00, %%xmm2, %%xmm2 \n\t" // bias, bias, ...
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1388 ".balign 16 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1389 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1390 - "movlps (%0, %%esi), %%xmm0 \n\t" // ? ? A ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1391 - "movlps 8(%0, %%esi), %%xmm1 \n\t" // ? ? C ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1392 - "movhps -16(%0, %%edi), %%xmm1 \n\t" // ? D C ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1393 - "movhps -8(%0, %%edi), %%xmm0 \n\t" // ? B A ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1394 + "movlps (%0, %%"REG_S"), %%xmm0 \n\t" // ? ? A ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1395 + "movlps 8(%0, %%"REG_S"), %%xmm1 \n\t" // ? ? C ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1396 + "movhps -16(%0, %%"REG_D"), %%xmm1 \n\t" // ? D C ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1397 + "movhps -8(%0, %%"REG_D"), %%xmm0 \n\t" // ? B A ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1398 "shufps $0x99, %%xmm1, %%xmm0 \n\t" // D C B A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1399 - "mulps "MANGLE(sseWindow)"(%%esi), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1400 - "addps (%2, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1401 + "mulps "MANGLE(sseWindow)"(%%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1402 + "addps (%2, %%"REG_S"), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1403 "addps %%xmm2, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1404 - "movaps %%xmm0, (%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1405 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1406 - "subl $16, %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1407 - "cmpl $512, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1408 + "movaps %%xmm0, (%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1409 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1410 + "sub $16, %%"REG_D" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1411 + "cmp $512, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1412 " jb 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1413 :: "r" (buf+64), "r" (data_ptr), "r" (delay_ptr), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1414 - : "%esi", "%edi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1415 + : "%"REG_S, "%"REG_D
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1416 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1417 data_ptr+=128;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1418 delay_ptr+=128;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1419 // window_ptr+=128;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1420
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1421 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1422 - "movl $1024, %%edi \n\t" // 512
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1423 - "xorl %%esi, %%esi \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1424 + "mov $1024, %%"REG_D" \n\t" // 512
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1425 + "xor %%"REG_S", %%"REG_S" \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1426 "movss %3, %%xmm2 \n\t" // bias
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1427 "shufps $0x00, %%xmm2, %%xmm2 \n\t" // bias, bias, ...
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1428 ".balign 16 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1429 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1430 - "movlps (%0, %%esi), %%xmm0 \n\t" // ? ? ? A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1431 - "movlps 8(%0, %%esi), %%xmm1 \n\t" // ? ? ? C
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1432 - "movhps -16(%0, %%edi), %%xmm1 \n\t" // D ? ? C
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1433 - "movhps -8(%0, %%edi), %%xmm0 \n\t" // B ? ? A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1434 + "movlps (%0, %%"REG_S"), %%xmm0 \n\t" // ? ? ? A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1435 + "movlps 8(%0, %%"REG_S"), %%xmm1 \n\t" // ? ? ? C
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1436 + "movhps -16(%0, %%"REG_D"), %%xmm1 \n\t" // D ? ? C
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1437 + "movhps -8(%0, %%"REG_D"), %%xmm0 \n\t" // B ? ? A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1438 "shufps $0xCC, %%xmm1, %%xmm0 \n\t" // D C B A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1439 - "mulps 512+"MANGLE(sseWindow)"(%%esi), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1440 - "addps (%2, %%esi), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1441 + "mulps 512+"MANGLE(sseWindow)"(%%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1442 + "addps (%2, %%"REG_S"), %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1443 "addps %%xmm2, %%xmm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1444 - "movaps %%xmm0, (%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1445 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1446 - "subl $16, %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1447 - "cmpl $512, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1448 + "movaps %%xmm0, (%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1449 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1450 + "sub $16, %%"REG_D" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1451 + "cmp $512, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1452 " jb 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1453 :: "r" (buf), "r" (data_ptr), "r" (delay_ptr), "m" (bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1454 - : "%esi", "%edi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1455 + : "%"REG_S, "%"REG_D
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1456 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1457 data_ptr+=128;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1458 // window_ptr+=128;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1459 @@ -1054,48 +1054,48 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1460 delay_ptr = delay;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1461
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1462 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1463 - "xorl %%edi, %%edi \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1464 - "xorl %%esi, %%esi \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1465 + "xor %%"REG_D", %%"REG_D" \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1466 + "xor %%"REG_S", %%"REG_S" \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1467 ".balign 16 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1468 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1469 - "movlps (%0, %%esi), %%xmm0 \n\t" // ? ? ? A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1470 - "movlps 8(%0, %%esi), %%xmm1 \n\t" // ? ? ? C
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1471 - "movhps -16(%0, %%edi), %%xmm1 \n\t" // D ? ? C
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1472 - "movhps -8(%0, %%edi), %%xmm0 \n\t" // B ? ? A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1473 + "movlps (%0, %%"REG_S"), %%xmm0 \n\t" // ? ? ? A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1474 + "movlps 8(%0, %%"REG_S"), %%xmm1 \n\t" // ? ? ? C
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1475 + "movhps -16(%0, %%"REG_D"), %%xmm1 \n\t" // D ? ? C
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1476 + "movhps -8(%0, %%"REG_D"), %%xmm0 \n\t" // B ? ? A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1477 "shufps $0xCC, %%xmm1, %%xmm0 \n\t" // D C B A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1478 - "mulps 1024+"MANGLE(sseWindow)"(%%esi), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1479 - "movaps %%xmm0, (%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1480 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1481 - "subl $16, %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1482 - "cmpl $512, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1483 + "mulps 1024+"MANGLE(sseWindow)"(%%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1484 + "movaps %%xmm0, (%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1485 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1486 + "sub $16, %%"REG_D" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1487 + "cmp $512, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1488 " jb 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1489 :: "r" (buf+64), "r" (delay_ptr)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1490 - : "%esi", "%edi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1491 + : "%"REG_S, "%"REG_D
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1492 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1493 delay_ptr+=128;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1494 // window_ptr-=128;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1495
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1496 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1497 - "movl $1024, %%edi \n\t" // 1024
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1498 - "xorl %%esi, %%esi \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1499 + "mov $1024, %%"REG_D" \n\t" // 1024
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1500 + "xor %%"REG_S", %%"REG_S" \n\t" // 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1501 ".balign 16 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1502 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1503 - "movlps (%0, %%esi), %%xmm0 \n\t" // ? ? A ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1504 - "movlps 8(%0, %%esi), %%xmm1 \n\t" // ? ? C ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1505 - "movhps -16(%0, %%edi), %%xmm1 \n\t" // ? D C ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1506 - "movhps -8(%0, %%edi), %%xmm0 \n\t" // ? B A ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1507 + "movlps (%0, %%"REG_S"), %%xmm0 \n\t" // ? ? A ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1508 + "movlps 8(%0, %%"REG_S"), %%xmm1 \n\t" // ? ? C ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1509 + "movhps -16(%0, %%"REG_D"), %%xmm1 \n\t" // ? D C ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1510 + "movhps -8(%0, %%"REG_D"), %%xmm0 \n\t" // ? B A ?
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1511 "shufps $0x99, %%xmm1, %%xmm0 \n\t" // D C B A
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1512 - "mulps 1536+"MANGLE(sseWindow)"(%%esi), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1513 - "movaps %%xmm0, (%1, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1514 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1515 - "subl $16, %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1516 - "cmpl $512, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1517 + "mulps 1536+"MANGLE(sseWindow)"(%%"REG_S"), %%xmm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1518 + "movaps %%xmm0, (%1, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1519 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1520 + "sub $16, %%"REG_D" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1521 + "cmp $512, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1522 " jb 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1523 :: "r" (buf), "r" (delay_ptr)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1524 - : "%esi", "%edi"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1525 + : "%"REG_S, "%"REG_D
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1526 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1527 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1528 -#endif //arch_x86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1529 +#endif // ARCH_X86 || ARCH_X86_64
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1530
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1531 void
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1532 imdct_do_256(sample_t data[],sample_t delay[],sample_t bias)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1533 @@ -1242,7 +1242,7 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1534 xcos1[i] = -cos ((M_PI / 2048) * (8 * i + 1));
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1535 xsin1[i] = -sin ((M_PI / 2048) * (8 * i + 1));
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1536 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1537 -#ifdef ARCH_X86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1538 +#if defined(ARCH_X86) || defined(ARCH_X86_64)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1539 for (i = 0; i < 128; i++) {
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1540 sseSinCos1c[2*i+0]= xcos1[i];
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1541 sseSinCos1c[2*i+1]= -xcos1[i];
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1542 @@ -1264,7 +1264,7 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1543 w[i][k].imag = sin (-M_PI * k / j);
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1544 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1545 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1546 -#ifdef ARCH_X86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1547 +#if defined(ARCH_X86) || defined(ARCH_X86_64)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1548 for (i = 1; i < 7; i++) {
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1549 j = 1 << i;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1550 for (k = 0; k < j; k+=2) {
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1551 @@ -1307,10 +1307,10 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1552 sseWindow[384 + 2*i+0]= imdct_window[126 - 2*i+1];
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1553 sseWindow[384 + 2*i+1]= -imdct_window[126 - 2*i+0];
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1554 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1555 -#endif // arch_x86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1556 +#endif // ARCH_X86 || ARCH_X86_64
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1557
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1558 imdct_512 = imdct_do_512;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1559 -#ifdef ARCH_X86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1560 +#if defined(ARCH_X86) || defined(ARCH_X86_64)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1561 if(mm_accel & MM_ACCEL_X86_SSE)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1562 {
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1563 fprintf (stderr, "Using SSE optimized IMDCT transform\n");
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1564 @@ -1329,7 +1329,7 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1565 imdct_512 = imdct_do_512_3dnow;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1566 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1567 else
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1568 -#endif // arch_x86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1569 +#endif // ARCH_X86 || ARCH_X86_64
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1570 #ifdef HAVE_ALTIVEC
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1571 if (mm_accel & MM_ACCEL_PPC_ALTIVEC)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1572 {
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1573 Index: liba52/resample.c
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1574 ===================================================================
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1575 RCS file: /cvsroot/mplayer/main/liba52/resample.c,v
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1576 retrieving revision 1.16
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1577 diff -u -r1.16 resample.c
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1578 --- liba52/resample.c 25 Jan 2004 18:29:11 -0000 1.16
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1579 +++ liba52/resample.c 31 Jul 2005 21:20:10 -0000
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1580 @@ -15,7 +15,7 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1581
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1582 #include "resample_c.c"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1583
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1584 -#ifdef ARCH_X86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1585 +#if defined(ARCH_X86) || defined(ARCH_X86_64)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1586 #include "resample_mmx.c"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1587 #endif
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1588
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1589 @@ -26,7 +26,7 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1590 void* a52_resample_init(uint32_t mm_accel,int flags,int chans){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1591 void* tmp;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1592
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1593 -#ifdef ARCH_X86
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1594 +#if defined(ARCH_X86) || defined(ARCH_X86_64)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1595 if(mm_accel&MM_ACCEL_X86_MMX){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1596 tmp=a52_resample_MMX(flags,chans);
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1597 if(tmp){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1598 Index: liba52/resample_mmx.c
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1599 ===================================================================
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1600 RCS file: /cvsroot/mplayer/main/liba52/resample_mmx.c,v
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1601 retrieving revision 1.17
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1602 diff -u -r1.17 resample_mmx.c
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1603 --- liba52/resample_mmx.c 26 Apr 2004 19:47:50 -0000 1.17
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1604 +++ liba52/resample_mmx.c 31 Jul 2005 21:20:10 -0000
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1605 @@ -7,6 +7,9 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1606 and it would mean (C / MMX2 / MMX / 3DNOW) versions
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1607 */
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1608
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1609 +#include "a52_internal.h"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1610 +
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1611 +
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1612 static uint64_t attribute_used __attribute__((aligned(8))) magicF2W= 0x43c0000043c00000LL;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1613 static uint64_t attribute_used __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000LL;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1614 static uint64_t attribute_used __attribute__((aligned(8))) wm0101= 0x0000FFFF0000FFFFLL;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1615 @@ -15,36 +18,36 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1616 static int a52_resample_MONO_to_5_MMX(float * _f, int16_t * s16){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1617 int32_t * f = (int32_t *) _f;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1618 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1619 - "movl $-512, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1620 + "mov $-512, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1621 "movq "MANGLE(magicF2W)", %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1622 "movq "MANGLE(wm1100)", %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1623 "movq "MANGLE(wm0101)", %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1624 "movq "MANGLE(wm1010)", %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1625 "pxor %%mm6, %%mm6 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1626 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1627 - "movq (%1, %%esi, 2), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1628 - "movq 8(%1, %%esi, 2), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1629 - "leal (%%esi, %%esi, 4), %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1630 + "movq (%1, %%"REG_S", 2), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1631 + "movq 8(%1, %%"REG_S", 2), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1632 + "lea (%%"REG_S", %%"REG_S", 4), %%"REG_D"\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1633 "psubd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1634 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1635 "packssdw %%mm1, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1636 "movq %%mm0, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1637 "pand %%mm4, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1638 "pand %%mm5, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1639 - "movq %%mm6, (%0, %%edi) \n\t" // 0 0 0 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1640 - "movd %%mm0, 8(%0, %%edi) \n\t" // A 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1641 + "movq %%mm6, (%0, %%"REG_D") \n\t" // 0 0 0 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1642 + "movd %%mm0, 8(%0, %%"REG_D") \n\t" // A 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1643 "pand %%mm3, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1644 - "movd %%mm6, 12(%0, %%edi) \n\t" // 0 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1645 - "movd %%mm1, 16(%0, %%edi) \n\t" // 0 B
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1646 + "movd %%mm6, 12(%0, %%"REG_D") \n\t" // 0 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1647 + "movd %%mm1, 16(%0, %%"REG_D") \n\t" // 0 B
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1648 "pand %%mm3, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1649 - "movd %%mm6, 20(%0, %%edi) \n\t" // 0 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1650 - "movq %%mm0, 24(%0, %%edi) \n\t" // 0 0 C 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1651 - "movq %%mm1, 32(%0, %%edi) \n\t" // 0 0 0 B
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1652 - "addl $8, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1653 + "movd %%mm6, 20(%0, %%"REG_D") \n\t" // 0 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1654 + "movq %%mm0, 24(%0, %%"REG_D") \n\t" // 0 0 C 0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1655 + "movq %%mm1, 32(%0, %%"REG_D") \n\t" // 0 0 0 B
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1656 + "add $8, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1657 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1658 "emms \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1659 :: "r" (s16+1280), "r" (f+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1660 - :"%esi", "%edi", "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1661 + :"%"REG_S, "%"REG_D, "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1662 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1663 return 5*256;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1664 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1665 @@ -54,29 +57,29 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1666 /* benchmark scores are 0.3% better with SSE but we would need to set bias=0 and premultiply it
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1667 #ifdef HAVE_SSE
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1668 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1669 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1670 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1671 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1672 - "cvtps2pi (%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1673 - "cvtps2pi 1024(%1, %%esi), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1674 + "cvtps2pi (%1, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1675 + "cvtps2pi 1024(%1, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1676 "movq %%mm0, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1677 "punpcklwd %%mm2, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1678 "punpckhwd %%mm2, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1679 - "movq %%mm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1680 - "movq %%mm1, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1681 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1682 + "movq %%mm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1683 + "movq %%mm1, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1684 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1685 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1686 "emms \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1687 :: "r" (s16+512), "r" (f+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1688 - :"%esi", "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1689 + :"%"REG_S, "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1690 );*/
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1691 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1692 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1693 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1694 "movq "MANGLE(magicF2W)", %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1695 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1696 - "movq (%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1697 - "movq 8(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1698 - "movq 1024(%1, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1699 - "movq 1032(%1, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1700 + "movq (%1, %%"REG_S"), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1701 + "movq 8(%1, %%"REG_S"), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1702 + "movq 1024(%1, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1703 + "movq 1032(%1, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1704 "psubd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1705 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1706 "psubd %%mm7, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1707 @@ -86,13 +89,13 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1708 "movq %%mm0, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1709 "punpcklwd %%mm2, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1710 "punpckhwd %%mm2, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1711 - "movq %%mm0, (%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1712 - "movq %%mm1, 8(%0, %%esi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1713 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1714 + "movq %%mm0, (%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1715 + "movq %%mm1, 8(%0, %%"REG_S") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1716 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1717 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1718 "emms \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1719 :: "r" (s16+512), "r" (f+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1720 - :"%esi", "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1721 + :"%"REG_S, "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1722 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1723 return 2*256;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1724 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1725 @@ -100,23 +103,23 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1726 static int a52_resample_3F_to_5_MMX(float * _f, int16_t * s16){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1727 int32_t * f = (int32_t *) _f;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1728 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1729 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1730 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1731 "movq "MANGLE(magicF2W)", %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1732 "pxor %%mm6, %%mm6 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1733 "movq %%mm7, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1734 "punpckldq %%mm6, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1735 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1736 - "movd (%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1737 - "punpckldq 2048(%1, %%esi), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1738 - "movd 1024(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1739 - "punpckldq 4(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1740 - "movd 2052(%1, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1741 + "movd (%1, %%"REG_S"), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1742 + "punpckldq 2048(%1, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1743 + "movd 1024(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1744 + "punpckldq 4(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1745 + "movd 2052(%1, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1746 "movq %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1747 - "punpckldq 1028(%1, %%esi), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1748 - "movd 8(%1, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1749 - "punpckldq 2056(%1, %%esi), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1750 - "leal (%%esi, %%esi, 4), %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1751 - "sarl $1, %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1752 + "punpckldq 1028(%1, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1753 + "movd 8(%1, %%"REG_S"), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1754 + "punpckldq 2056(%1, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1755 + "lea (%%"REG_S", %%"REG_S", 4), %%"REG_D"\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1756 + "sar $1, %%"REG_D" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1757 "psubd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1758 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1759 "psubd %%mm5, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1760 @@ -125,29 +128,28 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1761 "packssdw %%mm6, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1762 "packssdw %%mm2, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1763 "packssdw %%mm4, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1764 - "movq %%mm0, (%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1765 - "movq %%mm1, 8(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1766 - "movq %%mm3, 16(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1767 -
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1768 - "movd 1032(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1769 - "punpckldq 12(%1, %%esi), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1770 - "movd 2060(%1, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1771 + "movq %%mm0, (%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1772 + "movq %%mm1, 8(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1773 + "movq %%mm3, 16(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1774 + "movd 1032(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1775 + "punpckldq 12(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1776 + "movd 2060(%1, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1777 "movq %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1778 - "punpckldq 1036(%1, %%esi), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1779 + "punpckldq 1036(%1, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1780 "pxor %%mm0, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1781 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1782 "psubd %%mm5, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1783 "psubd %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1784 "packssdw %%mm1, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1785 "packssdw %%mm3, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1786 - "movq %%mm0, 24(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1787 - "movq %%mm2, 32(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1788 + "movq %%mm0, 24(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1789 + "movq %%mm2, 32(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1790
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1791 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1792 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1793 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1794 "emms \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1795 :: "r" (s16+1280), "r" (f+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1796 - :"%esi", "%edi", "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1797 + :"%"REG_S, "%"REG_D, "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1798 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1799 return 5*256;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1800 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1801 @@ -155,23 +157,23 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1802 static int a52_resample_2F_2R_to_4_MMX(float * _f, int16_t * s16){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1803 int32_t * f = (int32_t *) _f;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1804 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1805 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1806 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1807 "movq "MANGLE(magicF2W)", %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1808 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1809 - "movq (%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1810 - "movq 8(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1811 - "movq 1024(%1, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1812 - "movq 1032(%1, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1813 + "movq (%1, %%"REG_S"), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1814 + "movq 8(%1, %%"REG_S"), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1815 + "movq 1024(%1, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1816 + "movq 1032(%1, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1817 "psubd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1818 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1819 "psubd %%mm7, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1820 "psubd %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1821 "packssdw %%mm1, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1822 "packssdw %%mm3, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1823 - "movq 2048(%1, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1824 - "movq 2056(%1, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1825 - "movq 3072(%1, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1826 - "movq 3080(%1, %%esi), %%mm6 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1827 + "movq 2048(%1, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1828 + "movq 2056(%1, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1829 + "movq 3072(%1, %%"REG_S"), %%mm5\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1830 + "movq 3080(%1, %%"REG_S"), %%mm6\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1831 "psubd %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1832 "psubd %%mm7, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1833 "psubd %%mm7, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1834 @@ -190,15 +192,15 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1835 "punpckhdq %%mm3, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1836 "punpckldq %%mm4, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1837 "punpckhdq %%mm4, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1838 - "movq %%mm0, (%0, %%esi,2) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1839 - "movq %%mm2, 8(%0, %%esi,2) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1840 - "movq %%mm1, 16(%0, %%esi,2) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1841 - "movq %%mm5, 24(%0, %%esi,2) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1842 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1843 + "movq %%mm0, (%0, %%"REG_S",2) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1844 + "movq %%mm2, 8(%0, %%"REG_S",2) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1845 + "movq %%mm1, 16(%0, %%"REG_S",2)\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1846 + "movq %%mm5, 24(%0, %%"REG_S",2)\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1847 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1848 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1849 "emms \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1850 :: "r" (s16+1024), "r" (f+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1851 - :"%esi", "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1852 + :"%"REG_S, "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1853 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1854 return 4*256;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1855 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1856 @@ -206,23 +208,23 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1857 static int a52_resample_3F_2R_to_5_MMX(float * _f, int16_t * s16){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1858 int32_t * f = (int32_t *) _f;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1859 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1860 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1861 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1862 "movq "MANGLE(magicF2W)", %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1863 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1864 - "movd (%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1865 - "punpckldq 2048(%1, %%esi), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1866 - "movd 3072(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1867 - "punpckldq 4096(%1, %%esi), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1868 - "movd 1024(%1, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1869 - "punpckldq 4(%1, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1870 - "movd 2052(%1, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1871 - "punpckldq 3076(%1, %%esi), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1872 - "movd 4100(%1, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1873 - "punpckldq 1028(%1, %%esi), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1874 - "movd 8(%1, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1875 - "punpckldq 2056(%1, %%esi), %%mm5\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1876 - "leal (%%esi, %%esi, 4), %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1877 - "sarl $1, %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1878 + "movd (%1, %%"REG_S"), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1879 + "punpckldq 2048(%1, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1880 + "movd 3072(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1881 + "punpckldq 4096(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1882 + "movd 1024(%1, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1883 + "punpckldq 4(%1, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1884 + "movd 2052(%1, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1885 + "punpckldq 3076(%1, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1886 + "movd 4100(%1, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1887 + "punpckldq 1028(%1, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1888 + "movd 8(%1, %%"REG_S"), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1889 + "punpckldq 2056(%1, %%"REG_S"), %%mm5\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1890 + "lea (%%"REG_S", %%"REG_S", 4), %%"REG_D"\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1891 + "sar $1, %%"REG_D" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1892 "psubd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1893 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1894 "psubd %%mm7, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1895 @@ -232,32 +234,32 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1896 "packssdw %%mm1, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1897 "packssdw %%mm3, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1898 "packssdw %%mm5, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1899 - "movq %%mm0, (%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1900 - "movq %%mm2, 8(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1901 - "movq %%mm4, 16(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1902 + "movq %%mm0, (%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1903 + "movq %%mm2, 8(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1904 + "movq %%mm4, 16(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1905
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1906 - "movd 3080(%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1907 - "punpckldq 4104(%1, %%esi), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1908 - "movd 1032(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1909 - "punpckldq 12(%1, %%esi), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1910 - "movd 2060(%1, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1911 - "punpckldq 3084(%1, %%esi), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1912 - "movd 4108(%1, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1913 - "punpckldq 1036(%1, %%esi), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1914 + "movd 3080(%1, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1915 + "punpckldq 4104(%1, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1916 + "movd 1032(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1917 + "punpckldq 12(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1918 + "movd 2060(%1, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1919 + "punpckldq 3084(%1, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1920 + "movd 4108(%1, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1921 + "punpckldq 1036(%1, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1922 "psubd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1923 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1924 "psubd %%mm7, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1925 "psubd %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1926 "packssdw %%mm1, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1927 "packssdw %%mm3, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1928 - "movq %%mm0, 24(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1929 - "movq %%mm2, 32(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1930 + "movq %%mm0, 24(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1931 + "movq %%mm2, 32(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1932
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1933 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1934 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1935 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1936 "emms \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1937 :: "r" (s16+1280), "r" (f+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1938 - :"%esi", "%edi", "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1939 + :"%"REG_S, "%"REG_D, "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1940 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1941 return 5*256;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1942 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1943 @@ -265,14 +267,14 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1944 static int a52_resample_MONO_LFE_to_6_MMX(float * _f, int16_t * s16){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1945 int32_t * f = (int32_t *) _f;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1946 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1947 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1948 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1949 "movq "MANGLE(magicF2W)", %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1950 "pxor %%mm6, %%mm6 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1951 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1952 - "movq 1024(%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1953 - "movq 1032(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1954 - "movq (%1, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1955 - "movq 8(%1, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1956 + "movq 1024(%1, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1957 + "movq 1032(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1958 + "movq (%1, %%"REG_S"), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1959 + "movq 8(%1, %%"REG_S"), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1960 "psubd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1961 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1962 "psubd %%mm7, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1963 @@ -282,22 +284,22 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1964 "movq %%mm0, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1965 "punpcklwd %%mm2, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1966 "punpckhwd %%mm2, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1967 - "leal (%%esi, %%esi, 2), %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1968 - "movq %%mm6, (%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1969 - "movd %%mm0, 8(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1970 + "lea (%%"REG_S", %%"REG_S", 2), %%"REG_D"\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1971 + "movq %%mm6, (%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1972 + "movd %%mm0, 8(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1973 "punpckhdq %%mm0, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1974 - "movq %%mm6, 12(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1975 - "movd %%mm0, 20(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1976 - "movq %%mm6, 24(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1977 - "movd %%mm1, 32(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1978 + "movq %%mm6, 12(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1979 + "movd %%mm0, 20(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1980 + "movq %%mm6, 24(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1981 + "movd %%mm1, 32(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1982 "punpckhdq %%mm1, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1983 - "movq %%mm6, 36(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1984 - "movd %%mm1, 44(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1985 - "addl $16, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1986 + "movq %%mm6, 36(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1987 + "movd %%mm1, 44(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1988 + "add $16, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1989 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1990 "emms \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1991 :: "r" (s16+1536), "r" (f+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1992 - :"%esi", "%edi", "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1993 + :"%"REG_S, "%"REG_D, "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1994 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1995 return 6*256;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1996 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1997 @@ -305,17 +307,17 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1998 static int a52_resample_STEREO_LFE_to_6_MMX(float * _f, int16_t * s16){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
1999 int32_t * f = (int32_t *) _f;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2000 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2001 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2002 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2003 "movq "MANGLE(magicF2W)", %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2004 "pxor %%mm6, %%mm6 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2005 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2006 - "movq 1024(%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2007 - "movq 2048(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2008 - "movq (%1, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2009 + "movq 1024(%1, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2010 + "movq 2048(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2011 + "movq (%1, %%"REG_S"), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2012 "psubd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2013 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2014 "psubd %%mm7, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2015 - "leal (%%esi, %%esi, 2), %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2016 + "lea (%%"REG_S", %%"REG_S", 2), %%"REG_D"\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2017
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2018 "pxor %%mm4, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2019 "packssdw %%mm5, %%mm0 \n\t" // FfAa
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2020 @@ -327,15 +329,15 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2021 "punpckldq %%mm6, %%mm0 \n\t" // 00ba
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2022 "punpckhdq %%mm1, %%mm3 \n\t" // BAf0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2023
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2024 - "movq %%mm0, (%0, %%edi) \n\t" // 00ba
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2025 + "movq %%mm0, (%0, %%"REG_D") \n\t" // 00ba
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2026 "punpckhdq %%mm4, %%mm0 \n\t" // F000
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2027 - "movq %%mm3, 8(%0, %%edi) \n\t" // BAf0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2028 - "movq %%mm0, 16(%0, %%edi) \n\t" // F000
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2029 - "addl $8, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2030 + "movq %%mm3, 8(%0, %%"REG_D") \n\t" // BAf0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2031 + "movq %%mm0, 16(%0, %%"REG_D") \n\t" // F000
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2032 + "add $8, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2033 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2034 "emms \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2035 :: "r" (s16+1536), "r" (f+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2036 - :"%esi", "%edi", "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2037 + :"%"REG_S, "%"REG_D, "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2038 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2039 return 6*256;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2040 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2041 @@ -343,19 +345,19 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2042 static int a52_resample_3F_LFE_to_6_MMX(float * _f, int16_t * s16){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2043 int32_t * f = (int32_t *) _f;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2044 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2045 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2046 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2047 "movq "MANGLE(magicF2W)", %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2048 "pxor %%mm6, %%mm6 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2049 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2050 - "movq 1024(%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2051 - "movq 3072(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2052 - "movq 2048(%1, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2053 - "movq (%1, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2054 + "movq 1024(%1, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2055 + "movq 3072(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2056 + "movq 2048(%1, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2057 + "movq (%1, %%"REG_S"), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2058 "psubd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2059 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2060 "psubd %%mm7, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2061 "psubd %%mm7, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2062 - "leal (%%esi, %%esi, 2), %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2063 + "lea (%%"REG_S", %%"REG_S", 2), %%"REG_D"\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2064
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2065 "packssdw %%mm4, %%mm0 \n\t" // EeAa
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2066 "packssdw %%mm5, %%mm1 \n\t" // FfBb
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2067 @@ -366,16 +368,16 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2068 "punpckldq %%mm6, %%mm0 \n\t" // 00ba
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2069 "punpckhdq %%mm1, %%mm1 \n\t" // BABA
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2070
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2071 - "movq %%mm0, (%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2072 + "movq %%mm0, (%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2073 "punpckhdq %%mm2, %%mm0 \n\t" // FE00
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2074 "punpckldq %%mm1, %%mm2 \n\t" // BAfe
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2075 - "movq %%mm2, 8(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2076 - "movq %%mm0, 16(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2077 - "addl $8, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2078 + "movq %%mm2, 8(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2079 + "movq %%mm0, 16(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2080 + "add $8, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2081 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2082 "emms \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2083 :: "r" (s16+1536), "r" (f+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2084 - :"%esi", "%edi", "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2085 + :"%"REG_S, "%"REG_D, "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2086 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2087 return 6*256;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2088 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2089 @@ -383,21 +385,21 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2090 static int a52_resample_2F_2R_LFE_to_6_MMX(float * _f, int16_t * s16){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2091 int32_t * f = (int32_t *) _f;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2092 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2093 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2094 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2095 "movq "MANGLE(magicF2W)", %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2096 // "pxor %%mm6, %%mm6 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2097 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2098 - "movq 1024(%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2099 - "movq 2048(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2100 - "movq 3072(%1, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2101 - "movq 4096(%1, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2102 - "movq (%1, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2103 + "movq 1024(%1, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2104 + "movq 2048(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2105 + "movq 3072(%1, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2106 + "movq 4096(%1, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2107 + "movq (%1, %%"REG_S"), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2108 "psubd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2109 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2110 "psubd %%mm7, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2111 "psubd %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2112 "psubd %%mm7, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2113 - "leal (%%esi, %%esi, 2), %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2114 + "lea (%%"REG_S", %%"REG_S", 2), %%"REG_D"\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2115
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2116 "packssdw %%mm2, %%mm0 \n\t" // CcAa
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2117 "packssdw %%mm3, %%mm1 \n\t" // DdBb
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2118 @@ -414,14 +416,14 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2119 "punpckldq %%mm1, %%mm4 \n\t" // BAf0
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2120 "punpckhdq %%mm3, %%mm2 \n\t" // F0DC
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2121
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2122 - "movq %%mm0, (%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2123 - "movq %%mm4, 8(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2124 - "movq %%mm2, 16(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2125 - "addl $8, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2126 + "movq %%mm0, (%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2127 + "movq %%mm4, 8(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2128 + "movq %%mm2, 16(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2129 + "add $8, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2130 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2131 "emms \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2132 :: "r" (s16+1536), "r" (f+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2133 - :"%esi", "%edi", "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2134 + :"%"REG_S, "%"REG_D, "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2135 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2136 return 6*256;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2137 }
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2138 @@ -429,23 +431,23 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2139 static int a52_resample_3F_2R_LFE_to_6_MMX(float * _f, int16_t * s16){
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2140 int32_t * f = (int32_t *) _f;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2141 asm volatile(
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2142 - "movl $-1024, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2143 + "mov $-1024, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2144 "movq "MANGLE(magicF2W)", %%mm7 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2145 // "pxor %%mm6, %%mm6 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2146 "1: \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2147 - "movq 1024(%1, %%esi), %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2148 - "movq 3072(%1, %%esi), %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2149 - "movq 4096(%1, %%esi), %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2150 - "movq 5120(%1, %%esi), %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2151 - "movq 2048(%1, %%esi), %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2152 - "movq (%1, %%esi), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2153 + "movq 1024(%1, %%"REG_S"), %%mm0\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2154 + "movq 3072(%1, %%"REG_S"), %%mm1\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2155 + "movq 4096(%1, %%"REG_S"), %%mm2\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2156 + "movq 5120(%1, %%"REG_S"), %%mm3\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2157 + "movq 2048(%1, %%"REG_S"), %%mm4\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2158 + "movq (%1, %%"REG_S"), %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2159 "psubd %%mm7, %%mm0 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2160 "psubd %%mm7, %%mm1 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2161 "psubd %%mm7, %%mm2 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2162 "psubd %%mm7, %%mm3 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2163 "psubd %%mm7, %%mm4 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2164 "psubd %%mm7, %%mm5 \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2165 - "leal (%%esi, %%esi, 2), %%edi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2166 + "lea (%%"REG_S", %%"REG_S", 2), %%"REG_D"\n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2167
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2168 "packssdw %%mm2, %%mm0 \n\t" // CcAa
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2169 "packssdw %%mm3, %%mm1 \n\t" // DdBb
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2170 @@ -462,14 +464,14 @@
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2171 "punpckldq %%mm1, %%mm4 \n\t" // BAfe
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2172 "punpckhdq %%mm3, %%mm2 \n\t" // FEDC
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2173
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2174 - "movq %%mm0, (%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2175 - "movq %%mm4, 8(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2176 - "movq %%mm2, 16(%0, %%edi) \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2177 - "addl $8, %%esi \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2178 + "movq %%mm0, (%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2179 + "movq %%mm4, 8(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2180 + "movq %%mm2, 16(%0, %%"REG_D") \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2181 + "add $8, %%"REG_S" \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2182 " jnz 1b \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2183 "emms \n\t"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2184 :: "r" (s16+1536), "r" (f+256)
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2185 - :"%esi", "%edi", "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2186 + :"%"REG_S, "%"REG_D, "memory"
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2187 );
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2188 return 6*256;
b118c000ddd2 add the liba52 amd64 changes in a separate diff file
aurel
parents:
diff changeset
2189 }