From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4227 Path: news.gmane.org!not-for-mail From: James Gregurich Newsgroups: gmane.linux.lib.musl.general Subject: question float.h & powerpc Date: Fri, 15 Nov 2013 12:25:07 -0600 Message-ID: <407BD2A5-E4A4-48A6-832E-C6F9479466D1@mac.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_B7956DBE-3EE6-4881-9C16-959AC05F008F" X-Trace: ger.gmane.org 1384539919 6521 80.91.229.3 (15 Nov 2013 18:25:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Nov 2013 18:25:19 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4231-gllmg-musl=m.gmane.org@lists.openwall.com Fri Nov 15 19:25:24 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VhO56-0001W5-Gt for gllmg-musl@plane.gmane.org; Fri, 15 Nov 2013 19:25:24 +0100 Original-Received: (qmail 28302 invoked by uid 550); 15 Nov 2013 18:25:23 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 28294 invoked from network); 15 Nov 2013 18:25:22 -0000 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.14,0.0.0000 definitions=2013-11-15_05:2013-11-15,2013-11-15,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1311150121 X-Mailer: Apple Mail (2.1816) Xref: news.gmane.org gmane.linux.lib.musl.general:4227 Archived-At: --Apple-Mail=_B7956DBE-3EE6-4881-9C16-959AC05F008F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi. I=92m puzzled by the long double settings for powerpc. bits/float.h has #define FLT_ROUNDS 1 #define FLT_EVAL_METHOD 0 #define LDBL_TRUE_MIN 4.9406564584124654e-324 #define LDBL_MIN 2.2250738585072014e-308 #define LDBL_MAX 1.7976931348623157e+308 #define LDBL_EPSILON 2.2204460492503131e-16 #define LDBL_MANT_DIG 53 #define LDBL_MIN_EXP (-1021) #define LDBL_MAX_EXP 1024 #define LDBL_DIG 15 #define LDBL_MIN_10_EXP (-307) #define LDBL_MAX_10_EXP 308 #define DECIMAL_DIG 17 the clang source code shows // PPC-LINUX:#define __LDBL_DENORM_MIN__ = 4.94065645841246544176568792868221e-324L // PPC-LINUX:#define __LDBL_DIG__ 31 // PPC-LINUX:#define __LDBL_EPSILON__ = 4.94065645841246544176568792868221e-324L // PPC-LINUX:#define __LDBL_HAS_DENORM__ 1 // PPC-LINUX:#define __LDBL_HAS_INFINITY__ 1 // PPC-LINUX:#define __LDBL_HAS_QUIET_NAN__ 1 // PPC-LINUX:#define __LDBL_MANT_DIG__ 106 // PPC-LINUX:#define __LDBL_MAX_10_EXP__ 308 // PPC-LINUX:#define __LDBL_MAX_EXP__ 1024 // PPC-LINUX:#define __LDBL_MAX__ = 1.79769313486231580793728971405301e+308L // PPC-LINUX:#define __LDBL_MIN_10_EXP__ (-291) // PPC-LINUX:#define __LDBL_MIN_EXP__ (-968) // PPC-LINUX:#define __LDBL_MIN__ = 2.00416836000897277799610805135016e-292L I believe that LDBL_MANT_DIG of 53 is for an 8 byte long double, but = powerpc uses 16 byte long doubles and has a LDBL_MANT_DIG value of 106. = Why is there a discrepancy? I note that the i386 value is correct at 64. = What do I need to do to reconcile this difference to allow the library=92s= configure script to complete the long double test correctly? -James =20 --Apple-Mail=_B7956DBE-3EE6-4881-9C16-959AC05F008F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi.

I=92m = puzzled by the long double settings for = powerpc.

bits/float.h = has


#define = FLT_ROUNDS 1
#define FLT_EVAL_METHOD 0

#define LDBL_TRUE_MIN = 4.9406564584124654e-324
#define LDBL_MIN = 2.2250738585072014e-308
#define LDBL_MAX = 1.7976931348623157e+308
#define LDBL_EPSILON = 2.2204460492503131e-16

#define LDBL_MANT_DIG 53
#define LDBL_MIN_EXP = (-1021)
#define LDBL_MAX_EXP 1024

#define LDBL_DIG 15
#define LDBL_MIN_10_EXP = (-307)
#define LDBL_MAX_10_EXP 308

#define DECIMAL_DIG 17




the clang source code shows

// PPC-LINUX:#define __LDBL_DENORM_MIN__ = 4.94065645841246544176568792868221e-324L
// = PPC-LINUX:#define __LDBL_DIG__ 31
// = PPC-LINUX:#define __LDBL_EPSILON__ = 4.94065645841246544176568792868221e-324L
// = PPC-LINUX:#define __LDBL_HAS_DENORM__ 1
// = PPC-LINUX:#define __LDBL_HAS_INFINITY__ 1
// = PPC-LINUX:#define __LDBL_HAS_QUIET_NAN__ 1
// = PPC-LINUX:#define __LDBL_MANT_DIG__ 106
// = PPC-LINUX:#define __LDBL_MAX_10_EXP__ 308
// = PPC-LINUX:#define __LDBL_MAX_EXP__ 1024
// = PPC-LINUX:#define __LDBL_MAX__ = 1.79769313486231580793728971405301e+308L
// = PPC-LINUX:#define __LDBL_MIN_10_EXP__ (-291)
// = PPC-LINUX:#define __LDBL_MIN_EXP__ (-968)
// = PPC-LINUX:#define __LDBL_MIN__ = 2.00416836000897277799610805135016e-292L

I believe that LDBL_MANT_DIG of 53 is = for an 8 byte long double, but powerpc uses 16 byte long doubles and has = a LDBL_MANT_DIG value of 106.  Why is = there a discrepancy? I note that the i386 value is correct at 64. What = do I need to do to reconcile this difference to allow the library=92s = configure script to complete the long double test = correctly?

-James

 =







= --Apple-Mail=_B7956DBE-3EE6-4881-9C16-959AC05F008F--