Deleted Added
full compact
float.h (127977) float.h (128629)
1/*
2 * Copyright (c) 1992, 1993, 2001
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This software was developed by the Computer Systems Engineering group
6 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
7 * contributed to Berkeley.
8 *

--- 18 unchanged lines hidden (view full) ---

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 * @(#)float.h 8.1 (Berkeley) 6/11/93
34 * from: NetBSD: float.h,v 1.3 2001/09/21 20:48:02 eeh Exp
1/*
2 * Copyright (c) 1992, 1993, 2001
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This software was developed by the Computer Systems Engineering group
6 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
7 * contributed to Berkeley.
8 *

--- 18 unchanged lines hidden (view full) ---

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 * @(#)float.h 8.1 (Berkeley) 6/11/93
34 * from: NetBSD: float.h,v 1.3 2001/09/21 20:48:02 eeh Exp
35 * $FreeBSD: head/sys/sparc64/include/float.h 127977 2004-04-07 05:00:01Z imp $
35 * $FreeBSD: head/sys/sparc64/include/float.h 128629 2004-04-25 02:36:29Z das $
36 */
37
38#ifndef _MACHINE_FLOAT_H_
39#define _MACHINE_FLOAT_H_
40
41#include <sys/cdefs.h>
42
43__BEGIN_DECLS
44extern int __flt_rounds(void);
45__END_DECLS
46
47#define FLT_RADIX 2 /* b */
48#define FLT_ROUNDS __flt_rounds()
36 */
37
38#ifndef _MACHINE_FLOAT_H_
39#define _MACHINE_FLOAT_H_
40
41#include <sys/cdefs.h>
42
43__BEGIN_DECLS
44extern int __flt_rounds(void);
45__END_DECLS
46
47#define FLT_RADIX 2 /* b */
48#define FLT_ROUNDS __flt_rounds()
49#if __ISO_C_VISIBLE >= 1999
49#define FLT_EVAL_METHOD 0 /* no promotion */
50#define DECIMAL_DIG 35 /* max precision in decimal digits */
50#define FLT_EVAL_METHOD 0 /* no promotion */
51#define DECIMAL_DIG 35 /* max precision in decimal digits */
52#endif
51
52#define FLT_MANT_DIG 24 /* p */
53#define FLT_EPSILON 1.19209290E-7F /* b**(1-p) */
54#define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */
55#define FLT_MIN_EXP (-125) /* emin */
56#define FLT_MIN 1.17549435E-38F /* b**(emin-1) */
57#define FLT_MIN_10_EXP (-37) /* ceil(log10(b**(emin-1))) */
58#define FLT_MAX_EXP 128 /* emax */

--- 24 unchanged lines hidden ---
53
54#define FLT_MANT_DIG 24 /* p */
55#define FLT_EPSILON 1.19209290E-7F /* b**(1-p) */
56#define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */
57#define FLT_MIN_EXP (-125) /* emin */
58#define FLT_MIN 1.17549435E-38F /* b**(emin-1) */
59#define FLT_MIN_10_EXP (-37) /* ceil(log10(b**(emin-1))) */
60#define FLT_MAX_EXP 128 /* emax */

--- 24 unchanged lines hidden ---