Add FLT_EVAL_METHOD and DECIMAL_DIG, required by C99 standard.

Approved by:	cognet (mentor)
This commit is contained in:
Oleksandr Tymoshenko 2008-05-03 21:04:21 +00:00
parent 430f2c8721
commit 956bb0e01e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178748

View File

@ -47,6 +47,12 @@ __END_DECLS
#else
#define FLT_ROUNDS __flt_rounds() /* FP addition rounds to nearest */
#endif
/*
* XXXMIPS: MIPS32 has both float and double type, so set FLT_EVAL_METHOD
* to 0. Check it for 64-bits systems.
*/
#define FLT_EVAL_METHOD 0
#define DECIMAL_DIG 17
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */