summaryrefslogtreecommitdiff
path: root/libm/s_atan.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-22 15:58:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-22 15:58:54 +0000
commit38b7304e932d52c8a4b250f35a1c8bcf6805d8ca (patch)
treedb12341ab2303620d70b9de8a5d52093a7262f3a /libm/s_atan.c
parentef9bd8dd3a1a6922839db782157e3f40f3411f32 (diff)
libm/*: mass removal of:
1. static char rcsid[] = "$NetBSD: ..." 2. /* @(#)s_scalbn.c 5.1 93/09/24 */ 3. #ifdef __STDC__ No code changes (verified with objdump)
Diffstat (limited to 'libm/s_atan.c')
-rw-r--r--libm/s_atan.c31
1 files changed, 2 insertions, 29 deletions
diff --git a/libm/s_atan.c b/libm/s_atan.c
index 7546ae9a0..08cfb08e8 100644
--- a/libm/s_atan.c
+++ b/libm/s_atan.c
@@ -1,4 +1,3 @@
-/* @(#)s_atan.c 5.1 93/09/24 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
@@ -10,10 +9,6 @@
* ====================================================
*/
-#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: s_atan.c,v 1.8 1995/05/10 20:46:45 jtc Exp $";
-#endif
-
/* atan(x)
* Method
* 1. Reduce x to positive by atan(x) = -atan(-x).
@@ -37,34 +32,21 @@ static char rcsid[] = "$NetBSD: s_atan.c,v 1.8 1995/05/10 20:46:45 jtc Exp $";
#include "math.h"
#include "math_private.h"
-
-#ifdef __STDC__
static const double atanhi[] = {
-#else
-static double atanhi[] = {
-#endif
4.63647609000806093515e-01, /* atan(0.5)hi 0x3FDDAC67, 0x0561BB4F */
7.85398163397448278999e-01, /* atan(1.0)hi 0x3FE921FB, 0x54442D18 */
9.82793723247329054082e-01, /* atan(1.5)hi 0x3FEF730B, 0xD281F69B */
1.57079632679489655800e+00, /* atan(inf)hi 0x3FF921FB, 0x54442D18 */
};
-#ifdef __STDC__
static const double atanlo[] = {
-#else
-static double atanlo[] = {
-#endif
2.26987774529616870924e-17, /* atan(0.5)lo 0x3C7A2B7F, 0x222F65E2 */
3.06161699786838301793e-17, /* atan(1.0)lo 0x3C81A626, 0x33145C07 */
1.39033110312309984516e-17, /* atan(1.5)lo 0x3C700788, 0x7AF0CBBD */
6.12323399573676603587e-17, /* atan(inf)lo 0x3C91A626, 0x33145C07 */
};
-#ifdef __STDC__
static const double aT[] = {
-#else
-static double aT[] = {
-#endif
3.33333333333329318027e-01, /* 0x3FD55555, 0x5555550D */
-1.99999999998764832476e-01, /* 0xBFC99999, 0x9998EBC4 */
1.42857142725034663711e-01, /* 0x3FC24924, 0x920083FF */
@@ -78,20 +60,11 @@ static double aT[] = {
1.62858201153657823623e-02, /* 0x3F90AD3A, 0xE322DA11 */
};
-#ifdef __STDC__
- static const double
-#else
- static double
-#endif
+static const double
one = 1.0,
huge = 1.0e300;
-#ifdef __STDC__
- double atan(double x)
-#else
- double atan(x)
- double x;
-#endif
+double atan(double x)
{
double w,s1,s2,z;
int32_t ix,hx,id;