+2000-12-04 Ulrich Drepper <drepper@redhat.com>
+
+ * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and
+ DECIMAL_DIG definitions.
+ * sysdeps/arm/fpu/bits/mathdef.h: Likewise
+ * sysdeps/generic/bits/mathdef.h: Likewise
+ * sysdeps/i386/fpu/bits/mathdef.h: Likewise
+ * sysdeps/ia64/fpu/bits/mathdef.h: Likewise
+ * sysdeps/m68k/fpu/bits/mathdef.h: Likewise
+ * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise
+ * sysdeps/sparc/fpu/bits/mathdef.h: Likewise
+ * sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise
+
2000-12-03 Ulrich Drepper <drepper@redhat.com>
+ * math/test-fenv.c (main): Use return instead of exit to avoid warning.
+
+ * math/atest-exp.c: Mark local functions as static to avoid warnings.
+ * math/atest-exp2.c: Likewise.
+ * math/atest-sincos.c: Likewise.
+
* sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
Reported by Fred J. Tydeman <tydeman@tybor.com>.
typedef double double_t; /* `double' expressions are evaluated as
`double'. */
-/* Signal that both types are `double'. */
-# define FLT_EVAL_METHOD 1
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
# define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN 2147483647
-/* Number of decimal digits for the `double' type. */
-# define DECIMAL_DIG 15
-
#endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997.
"84d9045190cfef324e7738926cfbe5f4bf8d8d8c31d763da07";
static const char hexdig[] = "0123456789abcdef";
-void
+static void
print_mpn_hex (const mp_limb_t *x, unsigned size)
{
char value[size + 1];
fputs (value, stdout);
}
-void
+static void
exp_mpn (mp1 ex, mp1 x)
{
unsigned n;
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997.
static const char hexdig[] = "0123456789abcdef";
-void
+static void
print_mpn_fp (const mp_limb_t *x, unsigned int dp, unsigned int base)
{
unsigned int i;
}
}
-void
+static void
read_mpn_hex(mp_limb_t *x, const char *str)
{
int i;
}
/* Compute e^x. */
-void
+static void
exp_mpn (mp1 ex, mp1 x)
{
unsigned int n;
}
/* Calculate 2^x. */
-void
+static void
exp2_mpn (mp1 ex, mp1 x)
{
mp2 tmp;
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997.
"300240b760e6fa96a94430a52d0e9e43f3450e3b8ff99bc934";
static const char hexdig[] = "0123456789abcdef";
-void
+static void
print_mpn_hex (const mp_limb_t *x, unsigned size)
{
char value[size + 1];
fputs (value, stdout);
}
-void
+static void
sincosx_mpn (mp1 si, mp1 co, mp1 xx, mp1 ix)
{
int i;
exit (1);
}
printf ("\n All tests passed successfully.\n");
- exit (0);
+ return 0;
}
typedef double float_t;
typedef double double_t;
-/* Strange compiler, we don't know how it works. */
-# define FLT_EVAL_METHOD -1
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
# define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN (2147483647)
-/* Number of decimal digits for the `double' type. */
-# define DECIMAL_DIG 15
-
#endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH
typedef double double_t; /* `double' expressions are evaluated as
`double'. */
-/* Signal that types stay as they were declared. */
-# define FLT_EVAL_METHOD 0
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
# define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN (2147483647)
-/* Number of decimal digits for the `double' type. */
-# define DECIMAL_DIG 15
-
#endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH
typedef double double_t; /* `double' expressions are evaluated as
`double'. */
-/* Signal that both types are `double'. */
-# define FLT_EVAL_METHOD 1
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
# define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN 2147483647
-/* Number of decimal digits for the `double' type. */
-# define DECIMAL_DIG 15
-
#endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH
typedef long double double_t; /* `double' expressions are evaluated as
`long double'. */
-/* Signal that both types are `long double'. */
-# define FLT_EVAL_METHOD 2
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
# define FP_ILOGB0 (-2147483647 - 1)
# define FP_ILOGBNAN (-2147483647 - 1)
-/* Number of decimal digits for the `long double' type. */
-# define DECIMAL_DIG 21
-
#endif /* ISO C99 */
typedef long double double_t; /* `double' expressions are evaluated as
`long double'. */
-/* Signal that both types are `long double'. */
-# define FLT_EVAL_METHOD 2
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
# define FP_ILOGB0 (-2147483647 - 1)
# define FP_ILOGBNAN (-2147483647 - 1)
-/* Number of decimal digits for the `long double' type. */
-# define DECIMAL_DIG 18
-
#endif /* ISO C99 */
typedef long double double_t; /* `double' expressions are evaluated as
`long double'. */
-/* Signal that both types are `long double'. */
-# define FLT_EVAL_METHOD 2
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
# define FP_ILOGB0 (-2147483647 - 1)
# define FP_ILOGBNAN (2147483647)
-/* Number of decimal digits for the `long double' type. */
-# define DECIMAL_DIG 18
-
#endif /* ISO C99 */
typedef double double_t; /* `double' expressions are evaluated as
`double'. */
-/* Signal that both types are `double'. */
-# define FLT_EVAL_METHOD 1
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
typedef double float_t;
typedef double double_t;
-/* Strange compiler, we don't know how it works. */
-# define FLT_EVAL_METHOD -1
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
# define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN (2147483647)
-/* Number of decimal digits for the `double' type. */
-# define DECIMAL_DIG 15
-
#endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH
-/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
typedef double double_t; /* `double' expressions are evaluated as
`double'. */
-/* Signal that types stay as they were declared. */
-# define FLT_EVAL_METHOD 0
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
typedef double double_t; /* `double' expressions are evaluated as
`double'. */
-/* Signal that both types are `double'. */
-# define FLT_EVAL_METHOD 1
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
typedef double float_t;
typedef double double_t;
-/* Strange compiler, we don't know how it works. */
-# define FLT_EVAL_METHOD -1
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
# define FP_ILOGB0 0x80000001
# define FP_ILOGBNAN 0x7fffffff
-/* Number of decimal digits for the `double' type. */
-# define DECIMAL_DIG 15
-
#endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH
typedef float float_t;
typedef double double_t;
-/* Signal that types stay as they were declared. */
-# define FLT_EVAL_METHOD 0
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
typedef double float_t;
typedef double double_t;
-/* Signal that both types are `double'. */
-# define FLT_EVAL_METHOD 1
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
typedef double float_t;
typedef double double_t;
-/* Strange compiler, we don't know how it works. */
-# define FLT_EVAL_METHOD -1
-
/* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF
# define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN (2147483647)
-/* Number of decimal digits for the `double' type. */
-# define DECIMAL_DIG 15
-
#endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH