00001 /* clib/include/ctype.h 00002 * 00003 * float.h for target with IEEE 32 bit and 64 bit floating point formats 00004 * This file is mechanically generated by enquire version 4.3, CWI, Amsterdam 00005 * 00006 * Copyright 2003 Simtec Electronics 00007 * 00008 * Permission is hereby granted, free of charge, to any person 00009 * obtaining a copy of this software and associated documentation 00010 * files (the "Software"), to deal in the Software without 00011 * restriction, including without limitation the rights to use, copy, 00012 * modify, merge, publish, distribute, sublicense, and/or sell copies 00013 * of the Software, and to permit persons to whom the Software is 00014 * furnished to do so, subject to the following conditions: 00015 * 00016 * The above copyright notice and this permission notice shall be 00017 * included in all copies or substantial portions of the Software. 00018 * 00019 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00020 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00021 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00022 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00023 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00024 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00025 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00026 * SOFTWARE. 00027 * 00028 */ 00029 00030 #ifndef _FLOAT_H_ 00031 #define _FLOAT_H_ 00032 00033 /* Radix of exponent representation */ 00034 #undef FLT_RADIX 00035 #define FLT_RADIX 2 00036 /* Number of base-FLT_RADIX digits in the significand of a float */ 00037 #undef FLT_MANT_DIG 00038 #define FLT_MANT_DIG 24 00039 /* Number of decimal digits of precision in a float */ 00040 #undef FLT_DIG 00041 #define FLT_DIG 6 00042 /* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown */ 00043 #undef FLT_ROUNDS 00044 #define FLT_ROUNDS 1 00045 /* Difference between 1.0 and the minimum float greater than 1.0 */ 00046 #undef FLT_EPSILON 00047 #define FLT_EPSILON 1.19209290e-07F 00048 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */ 00049 #undef FLT_MIN_EXP 00050 #define FLT_MIN_EXP (-125) 00051 /* Minimum normalised float */ 00052 #undef FLT_MIN 00053 #define FLT_MIN 1.17549435e-38F 00054 /* Minimum int x such that 10**x is a normalised float */ 00055 #undef FLT_MIN_10_EXP 00056 #define FLT_MIN_10_EXP (-37) 00057 /* Maximum int x such that FLT_RADIX**(x-1) is a representable float */ 00058 #undef FLT_MAX_EXP 00059 #define FLT_MAX_EXP 128 00060 /* Maximum float */ 00061 #undef FLT_MAX 00062 #define FLT_MAX 3.40282347e+38F 00063 /* Maximum int x such that 10**x is a representable float */ 00064 #undef FLT_MAX_10_EXP 00065 #define FLT_MAX_10_EXP 38 00066 00067 /* Number of base-FLT_RADIX digits in the significand of a double */ 00068 #undef DBL_MANT_DIG 00069 #define DBL_MANT_DIG 53 00070 /* Number of decimal digits of precision in a double */ 00071 #undef DBL_DIG 00072 #define DBL_DIG 15 00073 /* Difference between 1.0 and the minimum double greater than 1.0 */ 00074 #undef DBL_EPSILON 00075 #define DBL_EPSILON 2.2204460492503131e-16 00076 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */ 00077 #undef DBL_MIN_EXP 00078 #define DBL_MIN_EXP (-1021) 00079 /* Minimum normalised double */ 00080 #undef DBL_MIN 00081 #define DBL_MIN 2.2250738585072014e-308 00082 /* Minimum int x such that 10**x is a normalised double */ 00083 #undef DBL_MIN_10_EXP 00084 #define DBL_MIN_10_EXP (-307) 00085 /* Maximum int x such that FLT_RADIX**(x-1) is a representable double */ 00086 #undef DBL_MAX_EXP 00087 #define DBL_MAX_EXP 1024 00088 /* Maximum double */ 00089 #undef DBL_MAX 00090 #define DBL_MAX 1.7976931348623157e+308 00091 /* Maximum int x such that 10**x is a representable double */ 00092 #undef DBL_MAX_10_EXP 00093 #define DBL_MAX_10_EXP 308 00094 00095 /* Number of base-FLT_RADIX digits in the significand of a long double */ 00096 #undef LDBL_MANT_DIG 00097 #define LDBL_MANT_DIG 53 00098 /* Number of decimal digits of precision in a long double */ 00099 #undef LDBL_DIG 00100 #define LDBL_DIG 15 00101 /* Difference between 1.0 and the minimum long double greater than 1.0 */ 00102 #undef LDBL_EPSILON 00103 #define LDBL_EPSILON 2.2204460492503131e-16L 00104 /* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */ 00105 #undef LDBL_MIN_EXP 00106 #define LDBL_MIN_EXP (-1021) 00107 /* Minimum normalised long double */ 00108 #undef LDBL_MIN 00109 #define LDBL_MIN 2.2250738585072014e-308L 00110 /* Minimum int x such that 10**x is a normalised long double */ 00111 #undef LDBL_MIN_10_EXP 00112 #define LDBL_MIN_10_EXP (-307) 00113 /* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */ 00114 #undef LDBL_MAX_EXP 00115 #define LDBL_MAX_EXP 1024 00116 /* Maximum long double */ 00117 #undef LDBL_MAX 00118 #define LDBL_MAX 1.7976931348623157e+308L 00119 /* Maximum int x such that 10**x is a representable long double */ 00120 #undef LDBL_MAX_10_EXP 00121 #define LDBL_MAX_10_EXP 308 00122 00123 #endif /* _FLOAT_H_ */