float.h (127977) | float.h (128629) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 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 * from: FreeBSD: src/sys/i386/include/float.h,v 1.8 1999/08/28 00:44:11 | 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 --- 14 unchanged lines hidden (view full) --- 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 * from: FreeBSD: src/sys/i386/include/float.h,v 1.8 1999/08/28 00:44:11 |
31 * $FreeBSD: head/sys/powerpc/include/float.h 127977 2004-04-07 05:00:01Z imp $ | 31 * $FreeBSD: head/sys/powerpc/include/float.h 128629 2004-04-25 02:36:29Z das $ |
32 */ 33 34#ifndef _MACHINE_FLOAT_H_ 35#define _MACHINE_FLOAT_H_ 1 36 | 32 */ 33 34#ifndef _MACHINE_FLOAT_H_ 35#define _MACHINE_FLOAT_H_ 1 36 |
37#include <sys/cdefs.h> 38 |
|
37#define FLT_RADIX 2 /* b */ 38#define FLT_ROUNDS 1 /* FP addition rounds to nearest */ | 39#define FLT_RADIX 2 /* b */ 40#define FLT_ROUNDS 1 /* FP addition rounds to nearest */ |
41#if __ISO_C_VISIBLE >= 1999 |
|
39#define FLT_EVAL_METHOD 1 /* operands promoted to double */ 40#define DECIMAL_DIG 35 /* max precision in decimal digits */ | 42#define FLT_EVAL_METHOD 1 /* operands promoted to double */ 43#define DECIMAL_DIG 35 /* max precision in decimal digits */ |
44#endif |
|
41 42#define FLT_MANT_DIG 24 /* p */ 43#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ 44#define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */ 45#define FLT_MIN_EXP (-125) /* emin */ 46#define FLT_MIN 1.17549435E-38F /* b**(emin-1) */ 47#define FLT_MIN_10_EXP (-37) /* ceil(log10(b**(emin-1))) */ 48#define FLT_MAX_EXP 128 /* emax */ --- 24 unchanged lines hidden --- | 45 46#define FLT_MANT_DIG 24 /* p */ 47#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */ 48#define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */ 49#define FLT_MIN_EXP (-125) /* emin */ 50#define FLT_MIN 1.17549435E-38F /* b**(emin-1) */ 51#define FLT_MIN_10_EXP (-37) /* ceil(log10(b**(emin-1))) */ 52#define FLT_MAX_EXP 128 /* emax */ --- 24 unchanged lines hidden --- |