mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Update.
* math/math.h: Unconditionally include bits/mathdef.h. Declare long double functions only if __NO_LONG_DOUBLE_MATH is not defined. * sysdeps/generic/bits/mathdef.h: Define only if __USE_ISOC9X. Define __NO_LONG_DOUBLE_MATH. * sysdeps/m68k/fpu/bits/mathdef.h: Define only if __USE_ISOC9X. * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
1998-11-05 Ulrich Drepper <drepper@cygnus.com>
|
1998-11-05 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* math/math.h: Unconditionally include bits/mathdef.h. Declare
|
||||||
|
long double functions only if __NO_LONG_DOUBLE_MATH is not
|
||||||
|
defined.
|
||||||
|
* sysdeps/generic/bits/mathdef.h: Define only if __USE_ISOC9X.
|
||||||
|
Define __NO_LONG_DOUBLE_MATH.
|
||||||
|
* sysdeps/m68k/fpu/bits/mathdef.h: Define only if __USE_ISOC9X.
|
||||||
|
* sysdeps/i386/fpu/bits/mathdef.h: Likewise.
|
||||||
|
|
||||||
* elf/rtld.c: Add a few __builtin_expects where they will improve
|
* elf/rtld.c: Add a few __builtin_expects where they will improve
|
||||||
a lot.
|
a lot.
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1997, 1998 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
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
# error "Never use <bits/mathdef.h> directly; include <math.h> instead"
|
# error "Never use <bits/mathdef.h> directly; include <math.h> instead"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_ISOC9X
|
||||||
/* Normally, there is no long double type and the `float' and `double'
|
/* Normally, there is no long double type and the `float' and `double'
|
||||||
expressions are evaluated as `double'. */
|
expressions are evaluated as `double'. */
|
||||||
typedef double float_t; /* `float' expressions are evaluated as
|
typedef double float_t; /* `float' expressions are evaluated as
|
||||||
@@ -41,3 +41,9 @@ typedef double double_t; /* `double' expressions are evaluated as
|
|||||||
|
|
||||||
/* Number of decimal digits for the `double' type. */
|
/* Number of decimal digits for the `double' type. */
|
||||||
# define DECIMAL_DIG 15
|
# define DECIMAL_DIG 15
|
||||||
|
|
||||||
|
#endif /* ISO C 9X */
|
||||||
|
|
||||||
|
/* Signal that we do not really have a `long double'. The disables the
|
||||||
|
declaration of all the `long double' function variants. */
|
||||||
|
#define __NO_LONG_DOUBLE_MATH 1
|
||||||
|
@@ -36,6 +36,8 @@ __BEGIN_DECLS
|
|||||||
#ifdef __USE_ISOC9X
|
#ifdef __USE_ISOC9X
|
||||||
# include <bits/nan.h>
|
# include <bits/nan.h>
|
||||||
#endif
|
#endif
|
||||||
|
/* Get general and ISO C 9X specific information. */
|
||||||
|
#include <bits/mathdef.h>
|
||||||
|
|
||||||
|
|
||||||
/* The file <bits/mathcalls.h> contains the prototypes for all the
|
/* The file <bits/mathcalls.h> contains the prototypes for all the
|
||||||
@@ -81,7 +83,7 @@ __BEGIN_DECLS
|
|||||||
# undef _Mdouble_
|
# undef _Mdouble_
|
||||||
# undef __MATH_PRECNAME
|
# undef __MATH_PRECNAME
|
||||||
|
|
||||||
# if __STDC__ - 0 || __GNUC__ - 0
|
# if __STDC__ - 0 || __GNUC__ - 0 && !defined __NO_LONG_DOUBLE_MATH
|
||||||
/* Include the file of declarations again, this time using `long double'
|
/* Include the file of declarations again, this time using `long double'
|
||||||
instead of `double' and appending l to each function name. */
|
instead of `double' and appending l to each function name. */
|
||||||
|
|
||||||
@@ -147,7 +149,6 @@ extern int signgam;
|
|||||||
decimal and all internal floating-point formats.
|
decimal and all internal floating-point formats.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
# include <bits/mathdef.h>
|
|
||||||
|
|
||||||
/* All floating-point numbers can be put in one of these categories. */
|
/* All floating-point numbers can be put in one of these categories. */
|
||||||
enum
|
enum
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1997, 1998 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
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
# error "Never use <bits/mathdef.h> directly; include <math.h> instead"
|
# error "Never use <bits/mathdef.h> directly; include <math.h> instead"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_ISOC9X
|
||||||
/* Normally, there is no long double type and the `float' and `double'
|
/* Normally, there is no long double type and the `float' and `double'
|
||||||
expressions are evaluated as `double'. */
|
expressions are evaluated as `double'. */
|
||||||
typedef double float_t; /* `float' expressions are evaluated as
|
typedef double float_t; /* `float' expressions are evaluated as
|
||||||
@@ -41,3 +41,9 @@ typedef double double_t; /* `double' expressions are evaluated as
|
|||||||
|
|
||||||
/* Number of decimal digits for the `double' type. */
|
/* Number of decimal digits for the `double' type. */
|
||||||
# define DECIMAL_DIG 15
|
# define DECIMAL_DIG 15
|
||||||
|
|
||||||
|
#endif /* ISO C 9X */
|
||||||
|
|
||||||
|
/* Signal that we do not really have a `long double'. The disables the
|
||||||
|
declaration of all the `long double' function variants. */
|
||||||
|
#define __NO_LONG_DOUBLE_MATH 1
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1997, 1998 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
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
# error "Never use <bits/mathdef.h> directly; include <math.h> instead"
|
# error "Never use <bits/mathdef.h> directly; include <math.h> instead"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_ISOC9X
|
||||||
/* The ix87 FPUs evaluate all values in the 80 bit floating-point format
|
/* The ix87 FPUs evaluate all values in the 80 bit floating-point format
|
||||||
which is also available for the user as `long double'. Therefore we
|
which is also available for the user as `long double'. Therefore we
|
||||||
define: */
|
define: */
|
||||||
@@ -41,3 +41,5 @@ typedef long double double_t; /* `double' expressions are evaluated as
|
|||||||
|
|
||||||
/* Number of decimal digits for the `long double' type. */
|
/* Number of decimal digits for the `long double' type. */
|
||||||
# define DECIMAL_DIG 18
|
# define DECIMAL_DIG 18
|
||||||
|
|
||||||
|
#endif /* ISO C 9X */
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1997, 1998 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
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
# error "Never use <bits/mathdef.h> directly; include <math.h> instead"
|
# error "Never use <bits/mathdef.h> directly; include <math.h> instead"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_ISOC9X
|
||||||
/* The m68k FPUs evaluate all values in the 96 bit floating-point format
|
/* The m68k FPUs evaluate all values in the 96 bit floating-point format
|
||||||
which is also available for the user as `long double'. Therefore we
|
which is also available for the user as `long double'. Therefore we
|
||||||
define: */
|
define: */
|
||||||
@@ -41,3 +41,5 @@ typedef long double double_t; /* `double' expressions are evaluated as
|
|||||||
|
|
||||||
/* Number of decimal digits for the `long double' type. */
|
/* Number of decimal digits for the `long double' type. */
|
||||||
# define DECIMAL_DIG 18
|
# define DECIMAL_DIG 18
|
||||||
|
|
||||||
|
#endif /* ISO C 9X */
|
||||||
|
Reference in New Issue
Block a user