Print this page
11210 libm should be cstyle(1ONBLD) clean
*** 20,29 ****
--- 20,30 ----
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
+
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
*** 31,50 ****
#define GENERIC long double
#define ATAN2PI atan2pil
#define ATAN2 atan2l
! /* ATAN2PI(y,x)
*
! * ATAN2PI(y,x) = ATAN2(y,x)/pi
*/
extern GENERIC ATAN2();
! static GENERIC
! invpi = (GENERIC) 3.183098861837906715377675267450287240689e-0001L;
!
! GENERIC ATAN2PI(y,x)
! GENERIC y,x;
{
! return ATAN2(y,x)*invpi;
}
--- 32,51 ----
#define GENERIC long double
#define ATAN2PI atan2pil
#define ATAN2 atan2l
! /*
! * ATAN2PI(y, x)
*
! * ATAN2PI(y, x) = ATAN2(y, x) / pi
*/
extern GENERIC ATAN2();
+ static GENERIC invpi =
+ (GENERIC)3.183098861837906715377675267450287240689e-0001L;
! GENERIC
! ATAN2PI(GENERIC y, GENERIC x)
{
! return (ATAN2(y, x) * invpi);
}