From owner-freebsd-current@FreeBSD.ORG Thu Aug 4 17:11:58 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0417116A41F for ; Thu, 4 Aug 2005 17:11:58 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C5AB43D45 for ; Thu, 4 Aug 2005 17:11:57 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 9B9075CEA; Thu, 4 Aug 2005 13:11:56 -0400 (EDT) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 33854-09; Thu, 4 Aug 2005 13:11:47 -0400 (EDT) Received: from [192.168.1.3] (pool-68-161-54-113.ny325.east.verizon.net [68.161.54.113]) by pi.codefab.com (Postfix) with ESMTP id F2D7A5C3A; Thu, 4 Aug 2005 13:11:46 -0400 (EDT) Message-ID: <42F24C55.2010501@mac.com> Date: Thu, 04 Aug 2005 13:11:49 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050801 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steve Kargl , current@freebsd.org References: <20050804162618.GA96657@troutmask.apl.washington.edu> <42F24737.2060705@mac.com> <20050804170421.GD96813@troutmask.apl.washington.edu> In-Reply-To: <20050804170421.GD96813@troutmask.apl.washington.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: Subject: Re: Number of significand bits in long double? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2005 17:11:58 -0000 Steve Kargl wrote: > On Thu, Aug 04, 2005 at 12:49:59PM -0400, Chuck Swiger wrote: [ ... ] >>/usr/include/float.h ...? > > It's wrong. Compare this > [ ...a chunk of snipped... ] > > with this > >>PROPERTIES OF LONG DOUBLE >>Base = 2 >>Significant base digits = 53 (= at least 15 decimal digits) [ ...output from enquire.c trimmed... ] >>Long double expressions are evaluated in double precision Agreed, it does look like is wrong. A quick look suggests this was broken somewhere in 5.x, since from 4.11 ends with: #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 #endif /* _MACHINE_FLOAT_H_ */ -- -Chuck