mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 19:09:58 +08:00
bc019ef210
* libm/mathfp/sf_atan2.c: Fix atan2 typo for _DOUBLE_IS_32_BITS. * libm/mathfp/sf_atan.c: Ditto. Thu Feb 24 11:39:00 2000 Joel Sherrill <joel@OARcorp.com> * libc/include/sys/stat.h: Add RTEMS prototype for lstat.
35 lines
663 B
C
35 lines
663 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
|
|
_DEFUN (atan2f, (float, float),
|
|
float v _AND
|
|
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) */
|