Project

General

Profile

Bug #985 ยป float_and_double_t.patch

hasso, 04/07/2008 08:22 PM

View differences:

sys/cpu/amd64/include/float.h
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS 1 /* FP addition rounds to nearest */
#define FLT_EVAL_METHOD (-1) /* i387 semantics are...interesting */
#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 0 /* no promotions */
#define DECIMAL_DIG 21 /* max precision in decimal digits */
#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
sys/cpu/amd64/include/math.h
#define __HAVE_LONG_DOUBLE
#define __HAVE_NANF
#if __ISO_C_VISIBLE >= 1999
/* 7.12#2 float_t, double_t */
typedef float float_t;
typedef double double_t;
#endif
#endif
sys/cpu/i386/include/float.h
#define FLT_RADIX 2 /* b */
#define FLT_ROUNDS 1 /* FP addition rounds to nearest */
#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD (-1) /* i387 semantics are...interesting */
#define DECIMAL_DIG 21 /* max precision in decimal digits */
#endif
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
sys/cpu/i386/include/math.h
#define __HAVE_LONG_DOUBLE
#define __HAVE_NANF
#if __ISO_C_VISIBLE >= 1999
/* 7.12#2 float_t, double_t */
typedef long double float_t;
typedef long double double_t;
#endif
#endif
    (1-1/1)