~diresu/blender/blender-command-port

« back to all changes in this revision

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

  • Committer: theeth
  • Date: 2008-10-14 16:52:04 UTC
  • Revision ID: vcs-imports@canonical.com-20081014165204-r32w2gm6s0osvdhn
copy back trunk

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:40:34 EDT 2006 */
 
23
 
 
24
#include "config.h"
 
25
 
 
26
 
 
27
 
 
28
/* cheap-mode: VECTGRADE_FULL succeeded. (10 steps) */
 
29
/* Generated by: ../../../genfft-k7/gen_notw -no-randomized-cse -n 2 -name n1k7_2 */
 
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_notw.ml,v 1.12 2006-01-05 03:04:27 stevenj Exp $
 
36
 */
 
37
 
 
38
/* The following asm code is Copyright (c) 2000-2001 Stefan Kral */
 
39
.text
 
40
        .balign 64
 
41
n1k7_2:
 
42
        subl $20, %esp
 
43
        femms 
 
44
        movl %ebx, 16(%esp)
 
45
        movl 40(%esp), %edx
 
46
        movl 44(%esp), %ebx
 
47
        movl 24(%esp), %eax
 
48
        movl 32(%esp), %ecx
 
49
        sall $2, 52(%esp)
 
50
        sall $2, 56(%esp)
 
51
        leal (,%edx,4), %edx
 
52
        leal (,%ebx,4), %ebx
 
53
        .p2align 4,,7
 
54
.L0:
 
55
        /* promise simd cell size = 8 */ 
 
56
        movq (%eax), %mm1
 
57
        movq (%eax,%edx), %mm0
 
58
        /* simd data load/store barrier */ 
 
59
        addl 52(%esp), %eax
 
60
        movq %mm1, %mm2
 
61
        pfsub %mm0, %mm1
 
62
        pfadd %mm0, %mm2
 
63
        movq %mm1, (%ecx,%ebx)
 
64
        movq %mm2, (%ecx)
 
65
        addl 56(%esp), %ecx
 
66
        decl 48(%esp)
 
67
        jnz .L0
 
68
        femms 
 
69
        movl 16(%esp), %ebx
 
70
        addl $20, %esp
 
71
        ret 
 
72
 
 
73
.section .rodata
 
74
nam:
 
75
        .string "n1k7_2"
 
76
        .align 4
 
77
desc:
 
78
        .long 2
 
79
        .long nam
 
80
        .double 2
 
81
        .double 0
 
82
        .double 0
 
83
        .double 0
 
84
        .long fftwf_kdft_k7_mgenus
 
85
        .long 0
 
86
        .long 0
 
87
        .long 0
 
88
        .long 0
 
89
 
 
90
.text
 
91
        .align 4
 
92
.globl fftwf_codelet_n1k7_2
 
93
fftwf_codelet_n1k7_2:
 
94
        subl $12,%esp
 
95
        addl $-4,%esp
 
96
        pushl $desc
 
97
        pushl $n1k7_2
 
98
        pushl 28(%esp)
 
99
        call fftwf_kdft_register
 
100
        addl $16,%esp
 
101
        addl $12,%esp
 
102
        ret
 
103