* ====================================================
*
* $NetBSD: math.h,v 1.46 2007/02/22 22:08:19 drochner Exp $
- * $DragonFly: src/include/math.h,v 1.12 2007/06/17 18:00:08 pavalos Exp $
*/
/*
#define _MATH_H_
#include <sys/cdefs.h>
+#include <machine/limits.h>
#if __GNUC_PREREQ__(3, 3) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 800)
#define __MATH_BUILTIN_CONSTANTS
#define _FP_LOMD 0x80 /* range for machine-specific classes */
#define _FP_HIMD 0xff
+/* 7.12#8 values returned by ilogb(0) or ilogb(NAN), respectively */
+#define FP_ILOGB0 INT_MIN
+#define FP_ILOGBNAN INT_MIN
+
#endif /* ISO C99 */
/*