/****************************************************************************/
/*	Copyright (c) 2009, Bendor Research Pty. Ltd. All rights reserved.		*/
/*	This software is released under the GNU General Public License, version	*/
/*	3, with the exemptions that 1) the header files installed by this 	 	*/
/*	package can be included in closed-source code and 2) the libraries		*/
/*	built by this package can be statically linked into a closed-source 	*/
/*	binary. See the file LICENSE for the details.							*/
/*	This software is provided "AS IS", without any warranty or guarantee.	*/
/*	By using this software you acknowledge that neither Bendor Research nor	*/
/*	any of its personnel or affiliates can be held liable for any damages,	*/
/*	including, but not limited to, loss of business, loss of money, loss of */
/*	life, loss of reputation, arising out of this software being faulty or	*/
/*	not performing as advertised, even if Bendor Research was aware of such	*/
/*	faults in the software. You use this software at your own risk, any and */
/*	all liabilities that arise out of your using this software are strictly	*/
/*	yours.																	*/
/****************************************************************************/

/*
*	Table of arcus tangent values for the circular CORDIC routines.
*	The first 28 elements are the actual atan() values and the last one
*	is the gain compensation constant for 28 iterations of the circular
*	type CORDIC algorithm. This table is used by the vrot32() and vabs32()
*	functions.
*
*	The table elements are generated by the following code:
*
*	int		table[ 29 ];
*
*	void	tabgen( void )
*	{
*	double 	d;
*	int		i;
*
*		d = ldexp( 8.0 / 9.0, 30 ) / atan( 1.0 );
*
*		for ( i = 0 ; i < 28 ; i++ )
*
*			table[ i ] = round( atan( ldexp( 1.0, -i ) ) * d );
*
*		d = 1.0;
*
*		for (  i = 0 ; i < 28 ; i++ )
*
*			d *= sqrt( 1.0 + ldexp( 1.0, -2 * i ) );
*
*		table[ 28 ] = round( ldexp( 1.0 / d, 32 ) );
*	}
*/

	.text
	.align	2
	.globl	_blm_cordic_atan
_blm_cordic_atan:
	.word	0x38e38e39, 0x21955e6e, 0x11be9d14, 0x0901e6ce
	.word	0x04856ce9, 0x024346e6, 0x0121b58b, 0x0090dd09
	.word	0x00486ecd, 0x00243770, 0x00121bb9, 0x00090ddd
	.word	0x000486ee, 0x00024377, 0x000121bc, 0x000090de
	.word	0x0000486f, 0x00002437, 0x0000121c, 0x0000090e
	.word	0x00000487, 0x00000243, 0x00000122, 0x00000091
	.word	0x00000048, 0x00000024, 0x00000012, 0x00000009
	.word	0x9b74eda8


