mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-02 18:53:22 +00:00
34 lines
627 B
C
34 lines
627 B
C
|
|
/* @(#)z_atan2f.c 1.0 98/08/13 */
|
|
/******************************************************************
|
|
* Arctangent2
|
|
*
|
|
* Input:
|
|
* v, u - floating point values
|
|
*
|
|
* Output:
|
|
* arctan2 of v / u
|
|
*
|
|
* Description:
|
|
* This routine returns the arctan2 of v / u.
|
|
*
|
|
*****************************************************************/
|
|
|
|
#include "fdlibm.h"
|
|
#include "zmath.h"
|
|
|
|
float
|
|
atan2f (float v,
|
|
float u)
|
|
{
|
|
return (atangentf (0.0, v, u, 1));
|
|
}
|
|
|
|
#ifdef _DOUBLE_IS_32BITS
|
|
double atan2 (double v, double u)
|
|
{
|
|
return (double) atangentf (0.0, (float) v, (float) u, 1);
|
|
}
|
|
|
|
#endif /* defined(_DOUBLE_IS_32BITS) */
|