Newer
Older
monitord / lame-3.97 / libmp3lame / i386 / .svn / text-base / ffttbl.nas.svn-base

;	for new GOGO-no-coda (1999/09)
;	Copyright (C) 1999 shigeo
;	special thanks to URURI, Keiichi SAKAI


;	fft sin,cos,grayテーブル
;	99/08/21
;	99/09/01(うるり) ビット反転テーブル削除
;	99/09/14 グレイコードインデックス表グローバル化

%include "nasm.h"

	globaldef	costab_fft
	globaldef	sintab_fft
	globaldef	gray_index

	segment_data
	align 16

costab_fft:
	dd 0.000000000000
	dd 0.707106781187
	dd 0.923879532511
	dd 0.980785280403
	dd 0.995184726672
	dd 0.998795456205
	dd 0.999698818696
	dd 0.999924701839
	dd 0.999981175283
	dd 0.999995293810
	dd 0.999998823452
	dd 0.999999705863
	dd 0.999999926466
	dd 0.999999981616
	dd 0.999999995404
	dd 0.999999998851

sintab_fft:
	dd 1.000000000000
	dd 0.707106781187
	dd 0.382683432365
	dd 0.195090322016
	dd 0.098017140330
	dd 0.049067674327
	dd 0.024541228523
	dd 0.012271538286
	dd 0.006135884649
	dd 0.003067956763
	dd 0.001533980186
	dd 0.000766990319
	dd 0.000383495188
	dd 0.000191747597
	dd 0.000095873799
	dd 0.000047936900

		align 16
gray_index:
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 6
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 7
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 6
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 8
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 6
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 7
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 6
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 9
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 6
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 7
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 6
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 8
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 6
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 7
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 6
		db	2, 3, 2, 4, 2, 3, 2, 5, 2, 3, 2, 4, 2, 3, 2, 10

	segment_code

	end