xref: /original-bsd/sys/vax/include/float.h (revision e0c0d005)
1 /*
2  * Copyright (c) 1989 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)float.h	7.2 (Berkeley) 06/28/90
8  */
9 
10 #define FLT_RADIX	2		/* b */
11 #define FLT_ROUNDS	1		/* FP addition rounds to nearest */
12 
13 #define FLT_MANT_DIG	24		/* p */
14 #define FLT_EPSILON	1.19209290E-07F	/* b**(1-p) */
15 #define FLT_DIG		6		/* floor((p-1)*log10(b))+(b == 10) */
16 #define FLT_MIN_EXP	-127		/* emin */
17 #define FLT_MIN		2.93873588E-39F	/* b**(emin-1) */
18 #define FLT_MIN_10_EXP	-38		/* ceil(log10(b**(emin-1))) */
19 #define FLT_MAX_EXP	127		/* emax */
20 #define FLT_MAX		1.70141173E+38F	/* (1-b**(-p))*b**emax */
21 #define FLT_MAX_10_EXP	38		/* floor(log10((1-b**(-p))*b**emax)) */
22 
23 #define DBL_MANT_DIG	56
24 #define DBL_EPSILON	2.775557561562891351E-17
25 #define DBL_DIG		16
26 #define DBL_MIN_EXP	-127
27 #define DBL_MIN		2.938735877055718770E-39
28 #define DBL_MIN_10_EXP	-38
29 #define DBL_MAX_EXP	127
30 #define DBL_MAX		1.701411834604692294E+38
31 #define DBL_MAX_10_EXP	38
32 
33 #define LDBL_MANT_DIG	DBL_MANT_DIG
34 #define LDBL_EPSILON	DBL_EPSILON
35 #define LDBL_DIG	DBL_DIG
36 #define LDBL_MIN_EXP	DBL_MIN_EXP
37 #define LDBL_MIN	DBL_MIN
38 #define LDBL_MIN_10_EXP	DBL_MIN_10_EXP
39 #define LDBL_MAX_EXP	DBL_MAX_EXP
40 #define LDBL_MAX	DBL_MAX
41 #define LDBL_MAX_10_EXP	DBL_MAX_10_EXP
42