about summary refs log tree commit diff
path: root/math/math.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-27 00:15:16 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-27 00:15:16 +0000
commit12b64309cfa2289e57d439ec9f2d645c59f7bcf1 (patch)
tree84decd88094c35982eda3eb6354a495c900d09c2 /math/math.h
parenta7927149a1e2070fbcf182d80133f42c0638a1ae (diff)
downloadglibc-12b64309cfa2289e57d439ec9f2d645c59f7bcf1.tar.gz
glibc-12b64309cfa2289e57d439ec9f2d645c59f7bcf1.tar.xz
glibc-12b64309cfa2289e57d439ec9f2d645c59f7bcf1.zip
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.
Diffstat (limited to 'math/math.h')
-rw-r--r--math/math.h12
1 files changed, 7 insertions, 5 deletions
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 <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 */