Date: Wed, 12 Nov 2008 19:24:10 -0800 From: Marcel Moolenaar <xcllnt@mac.com> To: Andreas Tobler <andreast-list@fgznet.ch> Cc: FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Subject: Re: ppc float.h Message-ID: <46B90E82-B28B-42BB-8D33-49F5C012262A@mac.com> In-Reply-To: <491B337D.5010901@fgznet.ch>
index | next in thread | previous in thread | raw e-mail
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@mac.comhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46B90E82-B28B-42BB-8D33-49F5C012262A>
