float.h (131219) | float.h (132383) |
---|---|
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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * from: @(#)float.h 7.1 (Berkeley) 5/8/90 |
30 * $FreeBSD: head/sys/i386/include/float.h 131219 2004-06-28 03:08:17Z imp $ | 30 * $FreeBSD: head/sys/i386/include/float.h 132383 2004-07-19 08:17:25Z das $ |
31 */ 32 33#ifndef _MACHINE_FLOAT_H_ 34#define _MACHINE_FLOAT_H_ 1 35 36#include <sys/cdefs.h> 37 | 31 */ 32 33#ifndef _MACHINE_FLOAT_H_ 34#define _MACHINE_FLOAT_H_ 1 35 36#include <sys/cdefs.h> 37 |
38__BEGIN_DECLS 39extern int __flt_rounds(void); 40__END_DECLS 41 |
|
38#define FLT_RADIX 2 /* b */ | 42#define FLT_RADIX 2 /* b */ |
39#define FLT_ROUNDS 1 /* FP addition rounds to nearest */ | 43#define FLT_ROUNDS __flt_rounds() |
40#if __ISO_C_VISIBLE >= 1999 41#define FLT_EVAL_METHOD (-1) /* i387 semantics are...interesting */ 42#define DECIMAL_DIG 21 /* max precision in decimal digits */ 43#endif 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) */ --- 27 unchanged lines hidden --- | 44#if __ISO_C_VISIBLE >= 1999 45#define FLT_EVAL_METHOD (-1) /* i387 semantics are...interesting */ 46#define DECIMAL_DIG 21 /* max precision in decimal digits */ 47#endif 48 49#define FLT_MANT_DIG 24 /* p */ 50#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ 51#define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */ --- 27 unchanged lines hidden --- |