ppc float.h
Marcel Moolenaar
xcllnt at mac.com
Wed Nov 12 20:24:17 PST 2008
On Nov 12, 2008, at 11:50 AM, Andreas Tobler wrote:
> Hello,
>
> can somebody explain why we have these defines in sys/powerpc/
> include/float.h ?
>
> #define LDBL_MANT_DIG DBL_MANT_DIG
> #define LDBL_EPSILON DBL_EPSILON
> #define LDBL_DIG DBL_DIG
> #define LDBL_MIN_EXP DBL_MIN_EXP
> #define LDBL_MIN DBL_MIN
> #define LDBL_MIN_10_EXP DBL_MIN_10_EXP
> #define LDBL_MAX_EXP DBL_MAX_EXP
> #define LDBL_MAX DBL_MAX
> #define LDBL_MAX_10_EXP DBL_MAX_10_EXP
Because "long double" on PowerPC is the same as "double".
This is dictated by the compiler:
mini-g4% gcc -E -dM -xc /dev/null | grep DBL | grep DIG
#define __DBL_DIG__ 15
#define __LDBL_DIG__ 15
#define __LDBL_MANT_DIG__ 53
#define __DBL_MANT_DIG__ 53
--
Marcel Moolenaar
xcllnt at mac.com
More information about the freebsd-ppc
mailing list