This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i370 float.h values?


On Tue, Sep 03, 2002 at 01:19:19AM +0200, Ulrich Weigand wrote:
> >Can someone check these values against a proper ibm 370 float.h?
> 
> I'll try to find one tomorrow ...  For now, I've just looked
> at the format specification.

FYI, my current set of values for 370 is 

#define __DBL_EPSILON__ 0x1p-52			// 2.22044604925031308085e-16
#define __DBL_MANT_DIG__ 14
#define __DBL_MAX_10_EXP__ 77
#define __DBL_MAX_EXP__ 64
#define __DBL_MAX__ 0x0.ffffffffffffffp256	// 1.15792089237316193817e+77
#define __DBL_MIN_10_EXP__ (-78)
#define __DBL_MIN_EXP__ (-64)
#define __DBL_MIN__ 0x1p-260			// 5.39760534693402789087e-79
#define __DECIMAL_DIG__ 18
#define __FLT_DIG__ 6
#define __FLT_EPSILON__ 0x1p-20F		// 9.53674316406250000000e-07
#define __FLT_EVAL_METHOD__ 0
#define __FLT_MANT_DIG__ 6
#define __FLT_MAX_10_EXP__ 77
#define __FLT_MAX_EXP__ 64
#define __FLT_MAX__ 0x0.ffffffp256F		// 1.15792082335569848633e+77
#define __FLT_MIN_10_EXP__ (-78)
#define __FLT_MIN_EXP__ (-64)
#define __FLT_MIN__ 0x1p-260F			// 5.39760534693402789087e-79
#define __FLT_RADIX__ 16

Hopefully I'll get the patch cleaned up tomorrow so other folk
can lay eyes on it.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]