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

	* 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.
This commit is contained in:
Ulrich Drepper 2000-12-04 08:37:38 +00:00
parent 09881ccc32
commit 767b6275d7
15 changed files with 32 additions and 88 deletions

View File

@ -1,5 +1,24 @@
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> 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. * sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
Reported by Fred J. Tydeman <tydeman@tybor.com>. Reported by Fred J. Tydeman <tydeman@tybor.com>.

View File

@ -30,9 +30,6 @@ typedef double float_t; /* `float' expressions are evaluated as
typedef double double_t; /* `double' expressions are evaluated as typedef double double_t; /* `double' expressions are evaluated as
`double'. */ `double'. */
/* Signal that both types are `double'. */
# define FLT_EVAL_METHOD 1
/* Define `INFINITY' as value of type `float'. */ /* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -41,9 +38,6 @@ typedef double double_t; /* `double' expressions are evaluated as
# define FP_ILOGB0 (-2147483647) # define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN 2147483647 # define FP_ILOGBNAN 2147483647
/* Number of decimal digits for the `double' type. */
# define DECIMAL_DIG 15
#endif /* ISO C99 */ #endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH #ifndef __NO_LONG_DOUBLE_MATH

View File

@ -1,4 +1,4 @@
/* 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. This file is part of the GNU C Library.
Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997. Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997.
@ -40,7 +40,7 @@ static const char exp1[102] = "2" /* point */
"84d9045190cfef324e7738926cfbe5f4bf8d8d8c31d763da07"; "84d9045190cfef324e7738926cfbe5f4bf8d8d8c31d763da07";
static const char hexdig[] = "0123456789abcdef"; static const char hexdig[] = "0123456789abcdef";
void static void
print_mpn_hex (const mp_limb_t *x, unsigned size) print_mpn_hex (const mp_limb_t *x, unsigned size)
{ {
char value[size + 1]; char value[size + 1];
@ -56,7 +56,7 @@ print_mpn_hex (const mp_limb_t *x, unsigned size)
fputs (value, stdout); fputs (value, stdout);
} }
void static void
exp_mpn (mp1 ex, mp1 x) exp_mpn (mp1 ex, mp1 x)
{ {
unsigned n; unsigned n;

View File

@ -1,4 +1,4 @@
/* 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. This file is part of the GNU C Library.
Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997. Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997.
@ -45,7 +45,7 @@ static const char exp_m1[102] = "0" /* point */
static const char hexdig[] = "0123456789abcdef"; static const char hexdig[] = "0123456789abcdef";
void static void
print_mpn_fp (const mp_limb_t *x, unsigned int dp, unsigned int base) print_mpn_fp (const mp_limb_t *x, unsigned int dp, unsigned int base)
{ {
unsigned int i; unsigned int i;
@ -66,7 +66,7 @@ print_mpn_fp (const mp_limb_t *x, unsigned int dp, unsigned int base)
} }
} }
void static void
read_mpn_hex(mp_limb_t *x, const char *str) read_mpn_hex(mp_limb_t *x, const char *str)
{ {
int i; int i;
@ -96,7 +96,7 @@ get_log2(void)
} }
/* Compute e^x. */ /* Compute e^x. */
void static void
exp_mpn (mp1 ex, mp1 x) exp_mpn (mp1 ex, mp1 x)
{ {
unsigned int n; unsigned int n;
@ -130,7 +130,7 @@ exp_mpn (mp1 ex, mp1 x)
} }
/* Calculate 2^x. */ /* Calculate 2^x. */
void static void
exp2_mpn (mp1 ex, mp1 x) exp2_mpn (mp1 ex, mp1 x)
{ {
mp2 tmp; mp2 tmp;

View File

@ -1,4 +1,4 @@
/* 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. This file is part of the GNU C Library.
Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997. Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997.
@ -43,7 +43,7 @@ static const char cos1[101] =
"300240b760e6fa96a94430a52d0e9e43f3450e3b8ff99bc934"; "300240b760e6fa96a94430a52d0e9e43f3450e3b8ff99bc934";
static const char hexdig[] = "0123456789abcdef"; static const char hexdig[] = "0123456789abcdef";
void static void
print_mpn_hex (const mp_limb_t *x, unsigned size) print_mpn_hex (const mp_limb_t *x, unsigned size)
{ {
char value[size + 1]; char value[size + 1];
@ -59,7 +59,7 @@ print_mpn_hex (const mp_limb_t *x, unsigned size)
fputs (value, stdout); fputs (value, stdout);
} }
void static void
sincosx_mpn (mp1 si, mp1 co, mp1 xx, mp1 ix) sincosx_mpn (mp1 si, mp1 co, mp1 xx, mp1 ix)
{ {
int i; int i;

View File

@ -657,5 +657,5 @@ main (void)
exit (1); exit (1);
} }
printf ("\n All tests passed successfully.\n"); printf ("\n All tests passed successfully.\n");
exit (0); return 0;
} }

View File

@ -58,9 +58,6 @@ typedef double double_t;
typedef double float_t; typedef double float_t;
typedef double double_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' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -70,9 +67,6 @@ typedef double double_t;
# define FP_ILOGB0 (-2147483647) # define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN (2147483647) # define FP_ILOGBNAN (2147483647)
/* Number of decimal digits for the `double' type. */
# define DECIMAL_DIG 15
#endif /* ISO C99 */ #endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH #ifndef __NO_LONG_DOUBLE_MATH

View File

@ -29,9 +29,6 @@ typedef float float_t; /* `float' expressions are evaluated as
typedef double double_t; /* `double' expressions are evaluated as typedef double double_t; /* `double' expressions are evaluated as
`double'. */ `double'. */
/* Signal that types stay as they were declared. */
# define FLT_EVAL_METHOD 0
/* Define `INFINITY' as value of type `float'. */ /* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -40,9 +37,6 @@ typedef double double_t; /* `double' expressions are evaluated as
# define FP_ILOGB0 (-2147483647) # define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN (2147483647) # define FP_ILOGBNAN (2147483647)
/* Number of decimal digits for the `double' type. */
# define DECIMAL_DIG 15
#endif /* ISO C99 */ #endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH #ifndef __NO_LONG_DOUBLE_MATH

View File

@ -30,9 +30,6 @@ typedef double float_t; /* `float' expressions are evaluated as
typedef double double_t; /* `double' expressions are evaluated as typedef double double_t; /* `double' expressions are evaluated as
`double'. */ `double'. */
/* Signal that both types are `double'. */
# define FLT_EVAL_METHOD 1
/* Define `INFINITY' as value of type `float'. */ /* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -41,9 +38,6 @@ typedef double double_t; /* `double' expressions are evaluated as
# define FP_ILOGB0 (-2147483647) # define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN 2147483647 # define FP_ILOGBNAN 2147483647
/* Number of decimal digits for the `double' type. */
# define DECIMAL_DIG 15
#endif /* ISO C99 */ #endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH #ifndef __NO_LONG_DOUBLE_MATH

View File

@ -31,9 +31,6 @@ typedef long double float_t; /* `float' expressions are evaluated as
typedef long double double_t; /* `double' expressions are evaluated as typedef long double double_t; /* `double' expressions are evaluated as
`long double'. */ `long double'. */
/* Signal that both types are `long double'. */
# define FLT_EVAL_METHOD 2
/* Define `INFINITY' as value of type `float'. */ /* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -41,7 +38,4 @@ typedef long double double_t; /* `double' expressions are evaluated as
# define FP_ILOGB0 (-2147483647 - 1) # define FP_ILOGB0 (-2147483647 - 1)
# define FP_ILOGBNAN (-2147483647 - 1) # define FP_ILOGBNAN (-2147483647 - 1)
/* Number of decimal digits for the `long double' type. */
# define DECIMAL_DIG 21
#endif /* ISO C99 */ #endif /* ISO C99 */

View File

@ -31,9 +31,6 @@ typedef long double float_t; /* `float' expressions are evaluated as
typedef long double double_t; /* `double' expressions are evaluated as typedef long double double_t; /* `double' expressions are evaluated as
`long double'. */ `long double'. */
/* Signal that both types are `long double'. */
# define FLT_EVAL_METHOD 2
/* Define `INFINITY' as value of type `float'. */ /* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -41,7 +38,4 @@ typedef long double double_t; /* `double' expressions are evaluated as
# define FP_ILOGB0 (-2147483647 - 1) # define FP_ILOGB0 (-2147483647 - 1)
# define FP_ILOGBNAN (-2147483647 - 1) # define FP_ILOGBNAN (-2147483647 - 1)
/* Number of decimal digits for the `long double' type. */
# define DECIMAL_DIG 18
#endif /* ISO C99 */ #endif /* ISO C99 */

View File

@ -31,9 +31,6 @@ typedef long double float_t; /* `float' expressions are evaluated as
typedef long double double_t; /* `double' expressions are evaluated as typedef long double double_t; /* `double' expressions are evaluated as
`long double'. */ `long double'. */
/* Signal that both types are `long double'. */
# define FLT_EVAL_METHOD 2
/* Define `INFINITY' as value of type `float'. */ /* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -41,7 +38,4 @@ typedef long double double_t; /* `double' expressions are evaluated as
# define FP_ILOGB0 (-2147483647 - 1) # define FP_ILOGB0 (-2147483647 - 1)
# define FP_ILOGBNAN (2147483647) # define FP_ILOGBNAN (2147483647)
/* Number of decimal digits for the `long double' type. */
# define DECIMAL_DIG 18
#endif /* ISO C99 */ #endif /* ISO C99 */

View File

@ -53,9 +53,6 @@ typedef double float_t; /* `float' expressions are evaluated as
typedef double double_t; /* `double' expressions are evaluated as typedef double double_t; /* `double' expressions are evaluated as
`double'. */ `double'. */
/* Signal that both types are `double'. */
# define FLT_EVAL_METHOD 1
/* Define `INFINITY' as value of type `float'. */ /* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -66,9 +63,6 @@ typedef double double_t; /* `double' expressions are evaluated as
typedef double float_t; typedef double float_t;
typedef double double_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' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -78,9 +72,6 @@ typedef double double_t;
# define FP_ILOGB0 (-2147483647) # define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN (2147483647) # define FP_ILOGBNAN (2147483647)
/* Number of decimal digits for the `double' type. */
# define DECIMAL_DIG 15
#endif /* ISO C99 */ #endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH #ifndef __NO_LONG_DOUBLE_MATH

View File

@ -1,4 +1,4 @@
/* 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. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -39,9 +39,6 @@ typedef float float_t; /* `float' expressions are evaluated as
typedef double double_t; /* `double' expressions are evaluated as typedef double double_t; /* `double' expressions are evaluated as
`double'. */ `double'. */
/* Signal that types stay as they were declared. */
# define FLT_EVAL_METHOD 0
/* Define `INFINITY' as value of type `float'. */ /* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -53,9 +50,6 @@ typedef double float_t; /* `float' expressions are evaluated as
typedef double double_t; /* `double' expressions are evaluated as typedef double double_t; /* `double' expressions are evaluated as
`double'. */ `double'. */
/* Signal that both types are `double'. */
# define FLT_EVAL_METHOD 1
/* Define `INFINITY' as value of type `float'. */ /* Define `INFINITY' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -66,9 +60,6 @@ typedef double double_t; /* `double' expressions are evaluated as
typedef double float_t; typedef double float_t;
typedef double double_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' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -78,9 +69,6 @@ typedef double double_t;
# define FP_ILOGB0 0x80000001 # define FP_ILOGB0 0x80000001
# define FP_ILOGBNAN 0x7fffffff # define FP_ILOGBNAN 0x7fffffff
/* Number of decimal digits for the `double' type. */
# define DECIMAL_DIG 15
#endif /* ISO C99 */ #endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH #ifndef __NO_LONG_DOUBLE_MATH

View File

@ -35,9 +35,6 @@
typedef float float_t; typedef float float_t;
typedef double double_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' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -47,9 +44,6 @@ typedef double double_t;
typedef double float_t; typedef double float_t;
typedef double double_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' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -60,9 +54,6 @@ typedef double double_t;
typedef double float_t; typedef double float_t;
typedef double double_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' as value of type `float'. */
# define INFINITY HUGE_VALF # define INFINITY HUGE_VALF
@ -72,9 +63,6 @@ typedef double double_t;
# define FP_ILOGB0 (-2147483647) # define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN (2147483647) # define FP_ILOGBNAN (2147483647)
/* Number of decimal digits for the `double' type. */
# define DECIMAL_DIG 15
#endif /* ISO C99 */ #endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH #ifndef __NO_LONG_DOUBLE_MATH