⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tabinit.c

📁 MP3的代码很实用 MP3的代码很实用
💻 C
字号:
/*
 * $Id: tabinit.c,v 1.1.1.1 2004/12/22 10:02:33 zyu Exp $
 */


#include "mpg123.h"

//real /*const*/ gainpow2[4] = {0x01000000, 0x01306fe0, 0x016a09e6, 0x01ae89f9, };	// FLOAT24

//#if 0
real /*const*/ ispow[130] = {							// FLOAT21	!!!!!!!!!!!!!!
	0x00000000, 0x00200000, 0x0050a28b, 0x008a74b9, 0x00cb2ff5, 0x0111989d, 0x015ce31c, 0x01ac7f20, 
	0x02000000, 0x0257106b, 0x02b16b4a, 0x030ed74b, 0x036f23fa, 0x03d227bd, 0x0437be65, 0x049fc823, 
	0x050a28be, 0x0576c6f5, 0x05e58c0b, 0x06566361, 0x06c93a2e, 0x073dff3e, 0x07b4a2bc, 0x082d160a, 
	0x08a74b9b, 0x092336d5, 0x09a0cbf6, 0x0a200000, 0x0aa0c8a1, 0x0b231c29, 0x0ba6f175, 0x0c2c3fe6, 
	0x0cb2ff52, 0x0d3b2800, 0x0dc4b298, 0x0e4f9821, 0x0edbd1f8, 0x0f6959c5, 0x0ff8297f, 0x10883b5c, 
	0x111989d6, 0x11ac0f9e, 0x123fc7a1, 0x12d4acfc, 0x136abaff, 0x1401ed25, 0x149a3f18, 0x1533aca7, 
	0x15ce31c8, 0x1669ca96, 0x1706734d, 0x17a4284a, 0x1842e608, 0x18e2a91f, 0x19836e43, 0x1a253242, 
	0x1ac7f203, 0x1b6baa83, 0x1c1058d7, 0x1cb5fa2b, 0x1d5c8bbe, 0x1e040ae1, 0x1eac74fa, 0x1f55c782, 
	0x20000000, 0x20ab1c0d, 0x21571953, 0x2203f589, 0x22b1ae76, 0x236041f0, 0x240fadd7, 0x24bff01b, 
	0x257106b8, 0x2622efb5, 0x26d5a925, 0x27893125, 0x283d85e0, 0x28f2a588, 0x29a88e5a, 0x2a5f3e9e, 
	0x2b16b4a3, 0x2bceeec2, 0x2c87eb5f, 0x2d41a8e2, 0x2dfc25bf, 0x2eb7606f, 0x2f735776, 0x3030095d, 
	0x30ed74b3, 0x31ab9812, 0x326a7217, 0x332a0167, 0x33ea44ae, 0x34ab3a9d, 0x356ce1ec, 0x362f3958, 
	0x36f23fa5, 0x37b5f39a, 0x387a5405, 0x393f5fbb, 0x3a051592, 0x3acb7469, 0x3b927b20, 0x3c5a28a0, 
	0x3d227bd2, 0x3deb73a7, 0x3eb50f12, 0x3f7f4d0d, 0x404a2c92, 0x4115aca2, 0x41e1cc42, 0x42ae8a7a, 
	0x437be655, 0x4449dee4, 0x45187337, 0x45e7a268, 0x46b76b8e, 0x4787cdc8, 0x4858c835, 0x492a59f9, 
	0x49fc823c, 0x4acf4026, 0x4ba292e4, 0x4c7679a5, 0x4d4af39d, 0x4e200000, 0x4ef59e05, 0x4fcbcce8, 
	0x50a28be6, 0x5179da3d, 
};
//#endif

#if 0
real /*const*/ aa_ca[8] = {							// FLOAT24
	0xff7c4a02, 0xff873c93, 0xffafc67f, 0xffd16e23, 0xffe7c9fd, 0xfff58348, 0xfffc5d7c, 0xffff0d85, 
};

real /*const*/ aa_cs[8] = {							// FLOAT24
	0x00db84a8, 0x00e1b9d7, 0x00f31adc, 0x00fbba81, 0x00feda41, 0x00ffc8fc, 0x00fff964, 0x00ffff8d, 
};
#endif

real /*const*/ COS1[12][6] = {							// FLOAT24
	{0x009bd7c9, 0xff137ca2, 0xffde95d6, 0x00fdcf54, 0xff9e0876, 0xff34e6cc, },
	{0x0061f78a, 0xff137ca2, 0x00ec835e, 0xff9e0876, 0xff9e0876, 0x00ec835e, },
	{0x00216a2a, 0xff9e0876, 0x009bd7c9, 0xff34e6cc, 0x00ec835e, 0xff0230ac, },
	{0xffde95d6, 0x0061f78a, 0xff642837, 0x00cb1934, 0xff137ca2, 0x00fdcf54, },
	{0xff9e0876, 0x00ec835e, 0xff137ca2, 0x0061f78a, 0x0061f78a, 0xff137ca2, },
	{0xff642837, 0x00ec835e, 0x00216a2a, 0xff0230ac, 0x0061f78a, 0x00cb1934, },
	{0xff34e6cc, 0x0061f78a, 0x00fdcf54, 0x00216a2a, 0xff137ca2, 0xff642837, },
	{0xff137ca2, 0xff9e0876, 0x0061f78a, 0x00ec835e, 0x00ec835e, 0x0061f78a, },
	{0xff0230ac, 0xff137ca2, 0xff34e6cc, 0xff642837, 0xff9e0876, 0xffde95d6, },
	{0xff0230ac, 0xff137ca2, 0xff34e6cc, 0xff642837, 0xff9e0876, 0xffde95d6, },
	{0xff137ca2, 0xff9e0876, 0x0061f78a, 0x00ec835e, 0x00ec835e, 0x0061f78a, },
	{0xff34e6cc, 0x0061f78a, 0x00fdcf54, 0x00216a2a, 0xff137ca2, 0xff642837, },
};

//#if 0
real /*const*/ win[4][36] = {							// FLOAT24
	{
		0x000843a9, 0x001b71e0, 0x00338fe2, 0x00535b97, 0x00800000, 0x00c48ce2, 0x013dc0c8, 0x0254fac1, 
		0x07be80a6, 0xf78c7a66, 0xfcf6004c, 0xfe0d3a45, 0xfe866e2b, 0xfecafb0d, 0xfef79f75, 0xff176b2b, 
		0xff2f892d, 0xff42b764, 0xff528db3, 0xff600a32, 0xff6bd44e, 0xff765fbe, 0xff800000, 0xff88f3e7, 
		0xff916cc2, 0xff999313, 0xffa189e2, 0xffa9712c, 0xffb167fa, 0xffb98e4c, 0xffc20726, 0xffcafb0d, 
		0xffd49b50, 0xffdf26bf, 0xffeaf0dc, 0xfff86d5b, 
	},
	{
		0x000843a9, 0x001b71e0, 0x00338fe2, 0x00535b97, 0x00800000, 0x00c48ce2, 0x013dc0c8, 0x0254fac1, 
		0x07be80a6, 0xf78c7a66, 0xfcf6004c, 0xfe0d3a45, 0xfe866e2b, 0xfecafb0d, 0xfef79f75, 0xff176b2b, 
		0xff2f892d, 0xff42b764, 0xff526366, 0xff5ea8d8, 0xff683b58, 0xff6fb1f3, 0xff75742d, 0xff79c9cd, 
		0xff7e038d, 0xff88b916, 0xff9a5aa2, 0xffb2011a, 0xffce9807, 0xffeee313, 0x00000000, 0x00000000, 
		0x00000000, 0x00000000, 0x00000000, 0x00000000, 
	},
	{
		0x001b71e0, 0x00800000, 0x0254fac1, 0xfcf6004c, 0xfecafb0d, 0xff2f892d, 0xff600a32, 0xff800000, 
		0xff999313, 0xffb167fa, 0xffcafb0d, 0xffeaf0dc, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
		0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
		0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
		0x00000000, 0x00000000, 0x00000000, 0x00000000, 
	},
	{
		0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x004d3116, 0x017746ea, 
		0x06fa6529, 0xf6e7ecac, 0xfc76004c, 0xfdb5aba3, 0xfe5655b5, 0xfeb18517, 0xfeeacafb, 0xff11c58b, 
		0xff2dbcad, 0xff42893a, 0xff528db3, 0xff600a32, 0xff6bd44e, 0xff765fbe, 0xff800000, 0xff88f3e7, 
		0xff916cc2, 0xff999313, 0xffa189e2, 0xffa9712c, 0xffb167fa, 0xffb98e4c, 0xffc20726, 0xffcafb0d, 
		0xffd49b50, 0xffdf26bf, 0xffeaf0dc, 0xfff86d5b, 
	},
};

#if 0
real /*const*/ COS9[9] = {							// FLOAT24
	0x01000000, 0x00fc1c5c, 0x00f08fb2, 0x00ddb3d7, 0x00c41b7d, 0x00a48dba, 0x00800000, 0x00578ea1, 0x002c7434, 
};


real /*const*/ tfcos36[9] = {							// FLOAT24
	0x00807d2b, 0x008483ee, 0x008d3b7c, 0x009c4257, 0x00b504f3, 0x00df2943, 0x012edfb1, 0x01ee8dd4, 0x05bca2a2, 
};
#endif

real /*const*/ tfcos12[3] = {0x008483ee, 0x00b504f3, 0x01ee8dd4, };		// FLOAT24


real /*const*/ COS6_1 = 0x00ddb3d7;						// FLOAT24
real /*const*/ COS6_2 = 0x00800000;						// FLOAT24

real /*const*/ pow1_1[2][16] = {							// FLOAT24
	{
		0x01000000, 0x00d744fc, 0x01000000, 0x00b504f3, 0x01000000, 0x009837f0, 0x01000000, 0x00800000, 
		0x01000000, 0x006ba27e, 0x01000000, 0x005a8279, 0x01000000, 0x004c1bf8, 0x01000000, 0x00400000, 
	},
	{
		0x01000000, 0x00b504f3, 0x01000000, 0x00800000, 0x01000000, 0x005a8279, 0x01000000, 0x00400000, 
		0x01000000, 0x002d413c, 0x01000000, 0x00200000, 0x01000000, 0x0016a09e, 0x01000000, 0x00100000, 
	},
};

real /*const*/ pow2_1[2][16] = {							// FLOAT24
	{
		0x01000000, 0x01000000, 0x00d744fc, 0x01000000, 0x00b504f3, 0x01000000, 0x009837f0, 0x01000000, 
		0x00800000, 0x01000000, 0x006ba27e, 0x01000000, 0x005a8279, 0x01000000, 0x004c1bf8, 0x01000000, 
	},
	{
		0x01000000, 0x01000000, 0x00b504f3, 0x01000000, 0x00800000, 0x01000000, 0x005a8279, 0x01000000, 
		0x00400000, 0x01000000, 0x002d413c, 0x01000000, 0x00200000, 0x01000000, 0x0016a09e, 0x01000000, 
	},
};

real /*const*/ pow1_2[2][16] = {							// FLOAT24
	{
		0x016a09e6, 0x01306fe0, 0x016a09e6, 0x01000000, 0x016a09e6, 0x00d744fc, 0x016a09e6, 0x00b504f3, 
		0x016a09e6, 0x009837f0, 0x016a09e6, 0x00800000, 0x016a09e6, 0x006ba27e, 0x016a09e6, 0x005a8279, 
	},
	{
		0x016a09e6, 0x01000000, 0x016a09e6, 0x00b504f3, 0x016a09e6, 0x00800000, 0x016a09e6, 0x005a8279, 
		0x016a09e6, 0x00400000, 0x016a09e6, 0x002d413c, 0x016a09e6, 0x00200000, 0x016a09e6, 0x0016a09e, 
	},
};

real /*const*/ pow2_2[2][16] = {							// FLOAT24
	{
		0x016a09e6, 0x016a09e6, 0x01306fe0, 0x016a09e6, 0x01000000, 0x016a09e6, 0x00d744fc, 0x016a09e6, 
		0x00b504f3, 0x016a09e6, 0x009837f0, 0x016a09e6, 0x00800000, 0x016a09e6, 0x006ba27e, 0x016a09e6, 
	},
	{
		0x016a09e6, 0x016a09e6, 0x01000000, 0x016a09e6, 0x00b504f3, 0x016a09e6, 0x00800000, 0x016a09e6, 
		0x005a8279, 0x016a09e6, 0x00400000, 0x016a09e6, 0x002d413c, 0x016a09e6, 0x00200000, 0x016a09e6, 
	},
};

real /*const*/ tan1_1[16] = {							// FLOAT24
	0x00000000, 0x00361962, 0x005db3d7, 0x00800000, 0x00a24c28, 0x00c9e69d, 0x01000000, 0x015db3d7, 
	0x025db3d7, 0x7fffffff, 0xfea24c29, 0xffa24c29, 0x00000000, 0x00361962, 0x005db3d7, 0x00800000, 
};

real /*const*/ tan2_1[16] = {
	0x01000000, 0x00c9e69d, 0x00a24c28, 0x00800000, 0x005db3d7, 0x00361962, 0x00000000, 0xffa24c29, 
	0xfea24c29, 0x80000000, 0x025db3d7, 0x015db3d7, 0x01000000, 0x00c9e69d, 0x00a24c28, 0x00800000, 
};

real /*const*/ tan1_2[16] = {
	0x00000000, 0x004c81fd, 0x008483ee, 0x00b504f3, 0x00e585f8, 0x011d87e8, 0x016a09e6, 0x01ee8dd4, 
	0x035897ba, 0x7fffffff, 0xfe11722c, 0xff7b7c12, 0x00000000, 0x004c81fd, 0x008483ee, 0x00b504f3, 
};

real /*const*/ tan2_2[16] = {
	0x016a09e6, 0x011d87e8, 0x00e585f8, 0x00b504f3, 0x008483ee, 0x004c81fd, 0x00000000, 0xff7b7c12, 
	0xfe11722c, 0x80000000, 0x035897ba, 0x01ee8dd4, 0x016a09e6, 0x011d87e8, 0x00e585f8, 0x00b504f3, 
};


/* esram.c */

/*volatile int * const mmacbase = (int *)0x41003ff0;
volatile int * const mrambase = (int *)0x41003000;*/
//volatile int * const mmacbase = (int *)0x11003ff0;
//volatile int * const mrambase = (int *)0x11003000;
/*volatile int * const mmamoder = mmacbase;
volatile int * const mmastatr = mmacbase + 0x1;
volatile int * const mmabufxar = mmacbase + 0x2;
volatile int * const mmabufzar = mmacbase + 0x3;*/
//real *pnts[5] = {cos64, cos32, cos16, cos8, cos4};

real hybridIn[2][SBLIMIT][SSLIMIT];
struct III_sideinfo sideinfo;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -