t2ex/t2ex_source/include/t2ex/float.h | bare source | permlink (0.00 seconds) |
1: /* 2: *---------------------------------------------------------------------- 3: * T2EX Software Package 4: * 5: * Copyright 2012 by Ken Sakamura. 6: * This software is distributed under the latest version of T-License 2.x. 7: *---------------------------------------------------------------------- 8: * 9: * Released by T-Engine Forum(http://www.t-engine.org/) at 2012/12/12. 10: * Modified by TRON Forum(http://www.tron.org/) at 2015/06/04. 11: * 12: *---------------------------------------------------------------------- 13: */ 14: /* 15: * This software package is available for use, modification, 16: * and redistribution in accordance with the terms of the attached 17: * T-License 2.x. 18: * If you want to redistribute the source code, you need to attach 19: * the T-License 2.x document. 20: * There's no obligation to publish the content, and no obligation 21: * to disclose it to the TRON Forum if you have modified the 22: * software package. 23: * You can also distribute the modified source code. In this case, 24: * please register the modification to T-Kernel traceability service. 25: * People can know the history of modifications by the service, 26: * and can be sure that the version you have inherited some 27: * modification of a particular version or not. 28: * 29: * http://trace.tron.org/tk/?lang=en 30: * http://trace.tron.org/tk/?lang=ja 31: * 32: * As per the provisions of the T-License 2.x, TRON Forum ensures that 33: * the portion of the software that is copyrighted by Ken Sakamura or 34: * the TRON Forum does not infringe the copyrights of a third party. 35: * However, it does not make any warranty other than this. 36: * DISCLAIMER: TRON Forum and Ken Sakamura shall not be held 37: * responsible for any consequences or damages caused directly or 38: * indirectly by the use of this software package. 39: * 40: * The source codes in bsd_source.tar.gz in this software package are 41: * derived from NetBSD or OpenBSD and not covered under T-License 2.x. 42: * They need to be changed or redistributed according to the 43: * representation of each source header. 44: */ 45: 46: /* 47: * @(#)float.h 48: * 49: */ 50: 51: #ifndef _FLOAT_H_ 52: #define _FLOAT_H_ 53: 54: #include <basic.h> 55: 56: #define FLT_ROUNDS (__flt_rounds()) 57: #define FLT_RADIX __FLT_RADIX__ 58: #define FLT_EVAL_METHOD __FLT_EVAL_METHOD__ 59: #define DECIMAL_DIG __DECIMAL_DIG__ 60: 61: #define FLT_DIG __FLT_DIG__ 62: #define FLT_EPSILON __FLT_EPSILON__ 63: #define FLT_MANT_DIG __FLT_MANT_DIG__ 64: #define FLT_MAX __FLT_MAX__ 65: #define FLT_MAX_10_EXP __FLT_MAX_10_EXP__ 66: #define FLT_MAX_EXP __FLT_MAX_EXP__ 67: #define FLT_MIN __FLT_MIN__ 68: #define FLT_MIN_10_EXP __FLT_MIN_10_EXP__ 69: #define FLT_MIN_EXP __FLT_MIN_EXP__ 70: 71: #define DBL_DIG __DBL_DIG__ 72: #define DBL_EPSILON __DBL_EPSILON__ 73: #define DBL_MANT_DIG __DBL_MANT_DIG__ 74: #define DBL_MAX __DBL_MAX__ 75: #define DBL_MAX_10_EXP __DBL_MAX_10_EXP__ 76: #define DBL_MAX_EXP __DBL_MAX_EXP__ 77: #define DBL_MIN __DBL_MIN__ 78: #define DBL_MIN_10_EXP __DBL_MIN_10_EXP__ 79: #define DBL_MIN_EXP __DBL_MIN_EXP__ 80: 81: #define LDBL_DIG __LDBL_DIG__ 82: #define LDBL_EPSILON __LDBL_EPSILON__ 83: #define LDBL_MANT_DIG __LDBL_MANT_DIG__ 84: #define LDBL_MAX __LDBL_MAX__ 85: #define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__ 86: #define LDBL_MAX_EXP __LDBL_MAX_EXP__ 87: #define LDBL_MIN __LDBL_MIN__ 88: #define LDBL_MIN_10_EXP __LDBL_MIN_10_EXP__ 89: #define LDBL_MIN_EXP __LDBL_MIN_EXP__ 90: 91: #ifdef __cplusplus 92: extern "C" { 93: #endif 94: 95: IMPORT int __flt_rounds(void); 96: 97: #ifdef __cplusplus 98: } 99: #endif 100: 101: #endif /* _FLOAT_H_ */ 102: