1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
* conform/conformtest.pl: Implement optional-macro.
	* conform/data/math.h-data: Update for XPG6.

	* math/math.h (HUGE): Define as FLT_MAX value but don't use
	FLT_MAX.  Don't include <float.h>.
	(MAXFLOAT): Likewise.

	* math/math.h: Define MATH_ERRNO and MATH_ERREXCEPT.
This commit is contained in:
Ulrich Drepper
2001-01-27 00:15:16 +00:00
parent a7927149a1
commit 12b64309cf
4 changed files with 267 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/* Declarations for math functions.
Copyright (C) 1991,92,93,95,96,97,98,99 Free Software Foundation, Inc.
Copyright (C) 1991,92,93,95,96,97,98,99,2001 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
@ -229,6 +229,10 @@ enum
? __isinf (x) : __isinfl (x))
# endif
/* Bitmasks for the math_errhandling macro. */
# define MATH_ERRNO 1 /* errno set by math functions. */
# define MATH_ERREXCEPT 2 /* Exceptions raised by math functions. */
#endif /* Use ISO C99. */
#ifdef __USE_MISC
@ -285,15 +289,13 @@ extern int matherr (struct exception *__exc);
# define PLOSS 6
/* SVID mode specifies returning this large value instead of infinity. */
# define HUGE FLT_MAX
# include <float.h> /* Defines FLT_MAX. */
# define HUGE 3.40282347e+38F
#else /* !SVID */
# ifdef __USE_XOPEN
/* X/Open wants another strange constant. */
# define MAXFLOAT FLT_MAX
# include <float.h>
# define MAXFLOAT 3.40282347e+38F
# endif
#endif /* SVID */