/* Copyright 1989, 1990, 1992 Digital Equipment Corporation All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software and any copies shall not be provided to any other person. No title to or ownership of the software is hereby transferred. The information in this software is subject to change without notice. DIGITAL assumes no responsibility for the use, functionality or reliability of its software on equipment which is not supplied by DIGITAL. float.h Characteristics of floating types for the PDP-11 */ #ifndef __FLOAT_H #define __FLOAT_H /* Definitions : */ #define FLT_ROUNDS ( -1 ) #define FLT_RADIX ( 2 ) #define FLT_MANT_DIG ( 24 ) #define DBL_MANT_DIG ( 56 ) #define LDBL_MANT_DIG ( DBL_MANT_DIG ) #define FLT_DIG ( 6 ) #define DBL_DIG ( 16 ) #define LDBL_DIG ( DBL_DIG ) #define FLT_MIN_EXP ( -127 ) #define DBL_MIN_EXP ( FLT_MIN_EXP ) #define LDBL_MIN_EXP ( FLT_MIN_EXP ) #define FLT_MIN_10_EXP ( -38 ) #define DBL_MIN_10_EXP ( FLT_MIN_10_EXP ) #define LDBL_MIN_10_EXP ( FLT_MIN_10_EXP ) #define FLT_MAX_EXP ( 127 ) #define DBL_MAX_EXP ( FLT_MAX_EXP ) #define LDBL_MAX_EXP ( FLT_MAX_EXP ) #define FLT_MAX_10_EXP ( 38 ) #define DBL_MAX_10_EXP ( FLT_MAX_10_EXP ) #define LDBL_MAX_10_EXP ( FLT_MAX_10_EXP ) #define __P2_7 ( 128.0 ) #define __P2_24 ( 16777216.0 ) #define __SP2_24_1 ( 16777215.0 ) #define __P2_32 ( 4294967296.0 ) #define __SP2_56_1 ( __P2_32*__P2_24-1.0 ) #define __P2_71 ( __P2_32*__P2_32*__P2_7 ) #define FLT_MAX ( __P2_71*__P2_32*__SP2_24_1 ) #define DBL_MAX ( __P2_71*__SP2_56_1 ) #define LDBL_MAX ( DBL_MAX ) #define __P2_n8 ( 0.00390625 ) #define __P2_n16 ( __P2_n8*__P2_n8 ) #define FLT_EPSILON ( __P2_n16*__P2_n8 ) #define DBL_EPSILON ( FLT_EPSILON*FLT_EPSILON*__P2_n8 ) #define LDBL_EPSILON ( DBL_EPSILON ) #define FLT_MIN ( DBL_EPSILON*DBL_EPSILON*__P2_n16 ) #define DBL_MIN ( FLT_MIN ) #define LDBL_MIN ( FLT_MIN ) #endif