From 12b64309cfa2289e57d439ec9f2d645c59f7bcf1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 27 Jan 2001 00:15:16 +0000 Subject: 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 . (MAXFLOAT): Likewise. * math/math.h: Define MATH_ERRNO and MATH_ERREXCEPT. --- math/math.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'math/math.h') diff --git a/math/math.h b/math/math.h index c601c432f0..ebd601a93b 100644 --- a/math/math.h +++ b/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 /* Defines FLT_MAX. */ +# define HUGE 3.40282347e+38F #else /* !SVID */ # ifdef __USE_XOPEN /* X/Open wants another strange constant. */ -# define MAXFLOAT FLT_MAX -# include +# define MAXFLOAT 3.40282347e+38F # endif #endif /* SVID */ -- cgit v1.2.3