float.h (139735) | float.h (143857) |
---|---|
1/*- 2 * Copyright (c) 1989 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#)float.h 7.1 (Berkeley) 5/8/90 | 1/*- 2 * Copyright (c) 1989 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#)float.h 7.1 (Berkeley) 5/8/90 |
34 * $FreeBSD: head/sys/arm/include/float.h 139735 2005-01-05 21:58:49Z imp $ | 34 * $FreeBSD: head/sys/arm/include/float.h 143857 2005-03-20 00:34:24Z cognet $ |
35 */ 36 37#ifndef _MACHINE_FLOAT_H_ 38#define _MACHINE_FLOAT_H_ 1 39 | 35 */ 36 37#ifndef _MACHINE_FLOAT_H_ 38#define _MACHINE_FLOAT_H_ 1 39 |
40#include <sys/cdefs.h> 41 42__BEGIN_DECLS 43extern int __flt_rounds(void); 44__END_DECLS 45 |
|
40#define FLT_RADIX 2 /* b */ | 46#define FLT_RADIX 2 /* b */ |
41#define FLT_ROUNDS (-1) /* indeterminate */ | 47#define FLT_ROUNDS -1 |
42#define FLT_EVAL_METHOD (-1) /* XXX */ | 48#define FLT_EVAL_METHOD (-1) /* XXX */ |
43#define DECIMAL_DIG 21 /* max precision in decimal digits */ | 49#define DECIMAL_DIG 17 /* max precision in decimal digits */ |
44 45#define FLT_MANT_DIG 24 /* p */ 46#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ 47#define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */ 48#define FLT_MIN_EXP (-125) /* emin */ 49#define FLT_MIN 1.17549435E-38F /* b**(emin-1) */ 50#define FLT_MIN_10_EXP (-37) /* ceil(log10(b**(emin-1))) */ 51#define FLT_MAX_EXP 128 /* emax */ --- 5 unchanged lines hidden (view full) --- 57#define DBL_DIG 15 58#define DBL_MIN_EXP (-1021) 59#define DBL_MIN 2.2250738585072014E-308 60#define DBL_MIN_10_EXP (-307) 61#define DBL_MAX_EXP 1024 62#define DBL_MAX 1.7976931348623157E+308 63#define DBL_MAX_10_EXP 308 64 | 50 51#define FLT_MANT_DIG 24 /* p */ 52#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ 53#define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */ 54#define FLT_MIN_EXP (-125) /* emin */ 55#define FLT_MIN 1.17549435E-38F /* b**(emin-1) */ 56#define FLT_MIN_10_EXP (-37) /* ceil(log10(b**(emin-1))) */ 57#define FLT_MAX_EXP 128 /* emax */ --- 5 unchanged lines hidden (view full) --- 63#define DBL_DIG 15 64#define DBL_MIN_EXP (-1021) 65#define DBL_MIN 2.2250738585072014E-308 66#define DBL_MIN_10_EXP (-307) 67#define DBL_MAX_EXP 1024 68#define DBL_MAX 1.7976931348623157E+308 69#define DBL_MAX_10_EXP 308 70 |
65 66#define LDBL_MANT_DIG 64 67#define LDBL_EPSILON 1.0842021724855044340E-19L 68#define LDBL_DIG 18 69#define LDBL_MIN_EXP (-16381) 70#define LDBL_MIN 3.3621031431120935063E-4932L 71#define LDBL_MIN_10_EXP (-4931) 72#define LDBL_MAX_EXP 16384 73#define LDBL_MAX 1.1897314953572317650E+4932L 74#define LDBL_MAX_10_EXP 4932 | 71#define LDBL_MANT_DIG DBL_MANT_DIG 72#define LDBL_EPSILON DBL_EPSILON 73#define LDBL_DIG DBL_DIG 74#define LDBL_MIN_EXP DBL_MIN_EXP 75#define LDBL_MIN DBL_MIN 76#define LDBL_MIN_10_EXP DBL_MIN_10_EXP 77#define LDBL_MAX_EXP DBL_MAX_EXP 78#define LDBL_MAX DBL_MAX 79#define LDBL_MAX_10_EXP DBL_MAX_10_EXP |
75#endif /* _MACHINE_FLOAT_H_ */ | 80#endif /* _MACHINE_FLOAT_H_ */ |