mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* 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:
12
math/math.h
12
math/math.h
@ -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 */
|
||||
|
Reference in New Issue
Block a user