math.h (121418) | math.h (126871) |
---|---|
1/* 2 * ==================================================== 3 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 4 * 5 * Developed at SunPro, a Sun Microsystems, Inc. business. 6 * Permission to use, copy, modify, and distribute this 7 * software is freely granted, provided that this notice 8 * is preserved. 9 * ==================================================== 10 */ 11 12/* 13 * from: @(#)fdlibm.h 5.1 93/09/24 | 1/* 2 * ==================================================== 3 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 4 * 5 * Developed at SunPro, a Sun Microsystems, Inc. business. 6 * Permission to use, copy, modify, and distribute this 7 * software is freely granted, provided that this notice 8 * is preserved. 9 * ==================================================== 10 */ 11 12/* 13 * from: @(#)fdlibm.h 5.1 93/09/24 |
14 * $FreeBSD: head/lib/msun/src/math.h 121418 2003-10-23 08:23:38Z des $ | 14 * $FreeBSD: head/lib/msun/src/math.h 126871 2004-03-12 12:02:03Z bde $ |
15 */ 16 17#ifndef _MATH_H_ 18#define _MATH_H_ 19 20#include <sys/_types.h> 21 22/* --- 12 unchanged lines hidden (view full) --- 35#define FP_ILOGB0 (-0x7fffffff - 1) /* INT_MIN */ 36#define FP_ILOGBNAN 0x7fffffff /* INT_MAX */ 37#define HUGE_VAL (__infinity.__ud) 38#define HUGE_VALF (float)HUGE_VAL 39#define HUGE_VALL (long double)HUGE_VAL 40#define INFINITY HUGE_VALF 41#define NAN (__nan.__uf) 42 | 15 */ 16 17#ifndef _MATH_H_ 18#define _MATH_H_ 19 20#include <sys/_types.h> 21 22/* --- 12 unchanged lines hidden (view full) --- 35#define FP_ILOGB0 (-0x7fffffff - 1) /* INT_MIN */ 36#define FP_ILOGBNAN 0x7fffffff /* INT_MAX */ 37#define HUGE_VAL (__infinity.__ud) 38#define HUGE_VALF (float)HUGE_VAL 39#define HUGE_VALL (long double)HUGE_VAL 40#define INFINITY HUGE_VALF 41#define NAN (__nan.__uf) 42 |
43#if __ISO_C_VISIBLE >= 1999 44#define MATH_ERRNO 1 45#define MATH_ERREXCEPT 2 46#define math_errhandling 0 47#endif 48 |
|
43/* Symbolic constants to classify floating point numbers. */ 44#define FP_INFINITE 0x01 45#define FP_NAN 0x02 46#define FP_NORMAL 0x04 47#define FP_SUBNORMAL 0x08 48#define FP_ZERO 0x10 49#define fpclassify(x) \ 50 ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \ --- 359 unchanged lines hidden --- | 49/* Symbolic constants to classify floating point numbers. */ 50#define FP_INFINITE 0x01 51#define FP_NAN 0x02 52#define FP_NORMAL 0x04 53#define FP_SUBNORMAL 0x08 54#define FP_ZERO 0x10 55#define fpclassify(x) \ 56 ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \ --- 359 unchanged lines hidden --- |