/*
 * float.h
 *
 * Created 29-05-91 by TetiSoft
 *
 * I tried to fill in the necessary values from ROM Kernel Reference Manual:
 * Libraries & Devices, but this header file will be incomplete
 * For unknown values I took the minimum required by ANSI C,
 * hoping Motorola FFP is precise enough
 *
 * If YOU know the correct values, please let me know!
 *
 * Detlef Wuerkner, Werrastr. 7, D-6300 Giessen, Germany
 */

#ifndef FLOAT_H
#define FLOAT_H 1

#define FLT_RADIX	2	/* Base of exponent */
/* #define FLT_ROUNDS */	/* Type of rounding  = ??? */
#define FLT_DIG		6	/* Minimum precision = ??? */
#define FLT_EPSILON	6E-7	/* Min x for (1.0 + x != 1.0) (I have tested it) */
#define FLT_MANT_DIG	24	/* Bits of Mantissa */
#define FLT_MAX		9.22337177E18  /* SHOULD BE AT LEAST 1E+37 !!! */
#define FLT_MAX_EXP	63	/* 2^(63-1) is valid */
#define FLT_MIN		5.42101070E-20 /* SHOULD BE AT LEAST 1E-37 !!! */
#define FLT_MIN_EXP	-20	/* 1E-20 is valid */

/* For HCC, float and double are the same */
#define DBL_DIG		FLT_DIG
#define DBL_EPSILON	FLT_EPSILON
#define DBL_MANT_DIG	FLT_MANT_DIG
#define DBL_MAX		FLT_MAX
#define DBL_MAX_EXP	FLT_MAX_EXP
#define DBL_MIN		FLT_MIN
#define DBL_MIN_EXP	FLT_MIN_EXP

#endif /* FLOAT_H */
