~ubuntu-branches/ubuntu/maverick/blender/maverick

« back to all changes in this revision

Viewing changes to extern/fftw/dft/k7/codelets/t1k7i_5.S

  • Committer: Bazaar Package Importer
  • Author(s): Khashayar Naderehvandi, Khashayar Naderehvandi, Alessio Treglia
  • Date: 2009-01-22 16:53:59 UTC
  • mfrom: (14.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090122165359-v0996tn7fbit64ni
Tags: 2.48a+dfsg-1ubuntu1
[ Khashayar Naderehvandi ]
* Merge from debian experimental (LP: #320045), Ubuntu remaining changes:
  - Add patch correcting header file locations.
  - Add libvorbis-dev and libgsm1-dev to Build-Depends.
  - Use avcodec_decode_audio2() in source/blender/src/hddaudio.c

[ Alessio Treglia ]
* Add missing previous changelog entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2003, 2006 Matteo Frigo
 
3
 * Copyright (c) 2003, 2006 Massachusetts Institute of Technology
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
 *
 
19
 */
 
20
 
 
21
/* This file was automatically generated --- DO NOT EDIT */
 
22
/* Generated on Sat Jul  1 22:48:31 EDT 2006 */
 
23
 
 
24
#include "config.h"
 
25
 
 
26
 
 
27
 
 
28
/* cheap-mode: VECTGRADE_FULL succeeded. (53 steps) */
 
29
/* Generated by: ../../../genfft-k7/gen_twiddle -no-randomized-cse -n 5 -sign 1 -name t1k7i_5 */
 
30
 
 
31
/*
 
32
 * Generator Id's : 
 
33
 * $Id: algsimp.ml,v 1.4 2006-01-05 03:04:27 stevenj Exp $
 
34
 * $Id: fft.ml,v 1.4 2006-01-05 03:04:27 stevenj Exp $
 
35
 * $Id: gen_twiddle.ml,v 1.14 2005-12-24 21:08:49 athena Exp $
 
36
 */
 
37
 
 
38
/* The following asm code is Copyright (c) 2000-2001 Stefan Kral */
 
39
.section .rodata
 
40
        .balign 64
 
41
KP951056516KP587785252: .float +0.951056516295153572116439333379382143405698634, +0.587785252292473129168705954639072768597652438
 
42
KP587785252KP951056516: .float +0.587785252292473129168705954639072768597652438, +0.951056516295153572116439333379382143405698634
 
43
KP250000000KP250000000: .float +0.250000000000000000000000000000000000000000000, +0.250000000000000000000000000000000000000000000
 
44
KP559016994KP559016994: .float +0.559016994374947424102293417182819058860154590, +0.559016994374947424102293417182819058860154590
 
45
chs_lo: .long 0x80000000, 0x00000000
 
46
.text
 
47
.text
 
48
        .balign 64
 
49
t1k7i_5:
 
50
        subl $20, %esp
 
51
        femms 
 
52
        movl %ebx, 16(%esp)
 
53
        movl 36(%esp), %edx
 
54
        movl 44(%esp), %ebx
 
55
        movl %esi, 12(%esp)
 
56
        movl %edi, 8(%esp)
 
57
        movl 28(%esp), %ecx
 
58
        movl %ebp, 4(%esp)
 
59
        movl 32(%esp), %eax
 
60
        movl 40(%esp), %esi
 
61
        leal (,%edx,4), %edx
 
62
        leal (,%ebx,4), %ebx
 
63
        .p2align 4,,7
 
64
.L0:
 
65
        /* promise simd cell size = 8 */ 
 
66
        leal (%edx,%edx,2), %edi
 
67
        movq 8(%eax), %mm0
 
68
        movq (%ecx,%edx,2), %mm1
 
69
        movq 16(%eax), %mm3
 
70
        leal (%edx,%edx,2), %ebp
 
71
        movq (%ecx,%edi), %mm4
 
72
        movq (%ecx,%edx,4), %mm7
 
73
        movq 24(%eax), %mm6
 
74
        pswapd %mm1, %mm2
 
75
        pfmul %mm0, %mm1
 
76
        pswapd %mm4, %mm5
 
77
        pfmul %mm3, %mm4
 
78
        pfmul %mm0, %mm2
 
79
        pswapd %mm7, %mm0
 
80
        pfmul %mm3, %mm5
 
81
        movq (%eax), %mm3
 
82
        addl $32, %eax
 
83
        pfmul %mm6, %mm7
 
84
        pfnacc %mm4, %mm1
 
85
        movq (%ecx,%edx), %mm4
 
86
        pfmul %mm6, %mm0
 
87
        pfacc %mm5, %mm2
 
88
        pswapd %mm4, %mm6
 
89
        pfmul %mm3, %mm4
 
90
        pfmul %mm3, %mm6
 
91
        pfnacc %mm7, %mm4
 
92
        pfacc %mm0, %mm6
 
93
        movq %mm4, %mm5
 
94
        pfacc %mm1, %mm4
 
95
        movq %mm6, %mm3
 
96
        pfacc %mm2, %mm6
 
97
        pfnacc %mm1, %mm5
 
98
        pfnacc %mm2, %mm3
 
99
        movq %mm4, %mm0
 
100
        movq (%ecx), %mm2
 
101
        /* simd data load/store barrier */ 
 
102
        pfacc %mm6, %mm4
 
103
        pfnacc %mm6, %mm0
 
104
        movq %mm5, %mm7
 
105
        pfmul KP951056516KP587785252, %mm5
 
106
        movq %mm2, %mm6
 
107
        pswapd %mm3, %mm1
 
108
        pfmul KP951056516KP587785252, %mm3
 
109
        pfmul KP587785252KP951056516, %mm7
 
110
        pfadd %mm4, %mm2
 
111
        pfmul KP250000000KP250000000, %mm4
 
112
        pfmul KP559016994KP559016994, %mm0
 
113
        pfmul KP951056516KP587785252, %mm1
 
114
        movq %mm2, (%ecx)
 
115
        pfacc %mm5, %mm3
 
116
        pfsub %mm4, %mm6
 
117
        pfnacc %mm7, %mm1
 
118
        pxor chs_lo, %mm3
 
119
        movq %mm6, %mm2
 
120
        pfsub %mm0, %mm6
 
121
        pfadd %mm0, %mm2
 
122
        movq %mm6, %mm5
 
123
        pfsub %mm1, %mm6
 
124
        movq %mm2, %mm4
 
125
        pfadd %mm1, %mm5
 
126
        pfsub %mm3, %mm2
 
127
        pfadd %mm3, %mm4
 
128
        movq %mm6, (%ecx,%ebp)
 
129
        movq %mm5, (%ecx,%edx,2)
 
130
        movq %mm2, (%ecx,%edx,4)
 
131
        movq %mm4, (%ecx,%edx)
 
132
        addl %ebx, %ecx
 
133
        decl %esi
 
134
        jnz .L0
 
135
        femms 
 
136
        movl 16(%esp), %ebx
 
137
        movl 12(%esp), %esi
 
138
        movl 8(%esp), %edi
 
139
        movl 4(%esp), %ebp
 
140
        addl $20, %esp
 
141
        ret 
 
142
 
 
143
.section .rodata
 
144
nam:
 
145
        .string "t1k7i_5"
 
146
        .align 4
 
147
twinstr:
 
148
        .byte 4
 
149
        .byte 0
 
150
        .value 5
 
151
        .byte 3
 
152
        .byte 1
 
153
        .value 0
 
154
        .align 4
 
155
desc:
 
156
        .long 5
 
157
        .long nam
 
158
        .long twinstr
 
159
        .long fftwf_kdft_ct_k7_pgenus
 
160
        .double 20
 
161
        .double 14
 
162
        .double 0
 
163
        .double 0
 
164
        .long 0
 
165
        .long 0
 
166
        .long 0
 
167
 
 
168
.text
 
169
        .align 4
 
170
.globl fftwf_codelet_t1k7i_5
 
171
fftwf_codelet_t1k7i_5:
 
172
        subl $12,%esp
 
173
        movl 16(%esp),%eax
 
174
        addl $-4,%esp
 
175
        pushl $desc
 
176
        pushl $t1k7i_5
 
177
        pushl %eax
 
178
        call fftwf_kdft_dit_register
 
179
        addl $16,%esp
 
180
        addl $12,%esp
 
181
        ret
 
182