1 /* Output routines for Motorola MCore processor 2 Copyright (C) 1993, 1999, 2000 Free Software Foundation, Inc. 3 4 This file is part of GNU CC. 5 6 GNU CC is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 GNU CC is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with GNU CC; see the file COPYING. If not, write to 18 the Free Software Foundation, 59 Temple Place - Suite 330, 19 Boston, MA 02111-1307, USA. */ 20 21 /* float.h for the M*Core microprocessor. It uses IEEE floating point. 22 * float is 32 bit IEEE-754 format 23 * double is 64 bit IEEE-754 format 24 * long double is not defined right now... 25 */ 26 #ifndef __FLOAT_H___ 27 #define __FLOAT_H___ 28 29 #define FLT_RADIX 2 30 #define FLT_ROUNDS 1 31 32 #define FLT_MANT_DIG 24 33 #define FLT_DIG 6 34 #define FLT_EPSILON ((float)1.19209290e-07) 35 #define FLT_MIN_EXP (-125) 36 #define FLT_MIN ((float)1.17549435e-38) 37 #define FLT_MIN_10_EXP (-37) 38 #define FLT_MAX_EXP 128 39 #define FLT_MAX ((float)3.40282347e+38) 40 #define FLT_MAX_10_EXP 38 41 42 #define DBL_MANT_DIG 53 43 #define DBL_DIG 15 44 #define DBL_EPSILON 2.2204460492503131e-16 45 #define DBL_MIN_EXP (-1021) 46 #define DBL_MIN 2.2250738585072014e-308 47 #define DBL_MIN_10_EXP (-307) 48 #define DBL_MAX_EXP 1024 49 #define DBL_MAX 1.7976931348623157e+308 50 #define DBL_MAX_10_EXP 308 51 52 53 /* No definitions for LDBL at this time. */ 54 55 #undef LDBL_MANT_DIG 56 #undef LDBL_DIG 57 #undef LDBL_EPSILON 58 #undef LDBL_MIN_EXP 59 #undef LDBL_MIN 60 #undef LDBL_MIN_10_EXP 61 #undef LDBL_MAX_EXP 62 #undef LDBL_MAX 63 #undef LDBL_MAX_10_EXP 64 65 #endif /* __FLOAT_H__ */ 66