Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2008 19:20:29 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185005 - head/sys/powerpc/include
Message-ID:  <200811161920.mAGJKTgR062602@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Sun Nov 16 19:20:29 2008
New Revision: 185005
URL: http://svn.freebsd.org/changeset/base/185005

Log:
  Define LDBL_EPSILON, LDBL_MAX and LDBL_MIN as long double constants.
  
  Submitted by:	Andreas Tobler <andreast-list@fgznet.ch>
  Reviewed by:	das@

Modified:
  head/sys/powerpc/include/float.h

Modified: head/sys/powerpc/include/float.h
==============================================================================
--- head/sys/powerpc/include/float.h	Sun Nov 16 18:30:16 2008	(r185004)
+++ head/sys/powerpc/include/float.h	Sun Nov 16 19:20:29 2008	(r185005)
@@ -72,13 +72,13 @@ __END_DECLS
 #define DBL_MAX_10_EXP	308
 
 #define LDBL_MANT_DIG	DBL_MANT_DIG
-#define LDBL_EPSILON	DBL_EPSILON
+#define LDBL_EPSILON	(long double)DBL_EPSILON
 #define LDBL_DIG	DBL_DIG
 #define LDBL_MIN_EXP	DBL_MIN_EXP
-#define LDBL_MIN	DBL_MIN
+#define LDBL_MIN	(long double)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	(long double)DBL_MAX
 #define LDBL_MAX_10_EXP	DBL_MAX_10_EXP
 
 #endif /* _MACHINE_FLOAT_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811161920.mAGJKTgR062602>