/*
 * Copyright (c) 2003, 2006 Matteo Frigo
 * Copyright (c) 2003, 2006 Massachusetts Institute of Technology
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

/* This file was automatically generated --- DO NOT EDIT */
/* Generated on Sat Jul  1 22:42:34 EDT 2006 */

#include "config.h"



/* cheap-mode: VECTGRADE_FULL succeeded. (19 steps) */
/* Generated by: ../../../genfft-k7/gen_notw -no-randomized-cse -n 3 -sign 1 -name n1k7i_3 */

/*
 * Generator Id's : 
 * $Id: algsimp.ml,v 1.4 2006-01-05 03:04:27 stevenj Exp $
 * $Id: fft.ml,v 1.4 2006-01-05 03:04:27 stevenj Exp $
 * $Id: gen_notw.ml,v 1.12 2006-01-05 03:04:27 stevenj Exp $
 */

/* The following asm code is Copyright (c) 2000-2001 Stefan Kral */
.section .rodata
	.balign 64
KP500000000KP500000000: .float +0.500000000000000000000000000000000000000000000, +0.500000000000000000000000000000000000000000000
KP866025403KN866025403: .float +0.866025403784438646763723170752936183471402627, -0.866025403784438646763723170752936183471402627
.text
.text
	.balign 64
n1k7i_3:
	subl $20, %esp
	femms 
	movl %ebx, 16(%esp)
	movl 40(%esp), %edx
	movl 44(%esp), %ebx
	movl 28(%esp), %eax
	movl 36(%esp), %ecx
	sall $2, 52(%esp)
	sall $2, 56(%esp)
	leal (,%edx,4), %edx
	leal (,%ebx,4), %ebx
	.p2align 4,,7
.L0:
	/* promise simd cell size = 8 */ 
	movq (%eax,%edx,2), %mm0
	movq (%eax,%edx), %mm1
	movq (%eax), %mm3
	/* simd data load/store barrier */ 
	addl 52(%esp), %eax
	movq %mm1, %mm2
	pfadd %mm0, %mm1
	movq %mm3, %mm4
	pfsubr %mm0, %mm2
	pfadd %mm1, %mm3
	pfmul KP500000000KP500000000, %mm1
	pswapd %mm2, %mm2
	pfmul KP866025403KN866025403, %mm2
	movq %mm3, (%ecx)
	pfsub %mm1, %mm4
	movq %mm4, %mm5
	pfadd %mm2, %mm4
	pfsub %mm2, %mm5
	movq %mm4, (%ecx,%ebx)
	movq %mm5, (%ecx,%ebx,2)
	addl 56(%esp), %ecx
	decl 48(%esp)
	jnz .L0
	femms 
	movl 16(%esp), %ebx
	addl $20, %esp
	ret 

.section .rodata
nam:
	.string "n1k7i_3"
	.align 4
desc:
	.long 3
	.long nam
	.double 6
	.double 2
	.double 0
	.double 0
	.long fftwf_kdft_k7_pgenus
	.long 0
	.long 0
	.long 0
	.long 0

.text
	.align 4
.globl fftwf_codelet_n1k7i_3
fftwf_codelet_n1k7i_3:
	subl $12,%esp
	addl $-4,%esp
	pushl $desc
	pushl $n1k7i_3
	pushl 28(%esp)
	call fftwf_kdft_register
	addl $16,%esp
	addl $12,%esp
	ret

