From owner-freebsd-current@FreeBSD.ORG Thu Aug 4 17:08:15 2005 Return-Path: X-Original-To: freebsd-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 A98B316A41F for ; Thu, 4 Aug 2005 17:08:15 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from gate.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 527BB43D45 for ; Thu, 4 Aug 2005 17:08:15 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by gate.bitblocks.com (8.13.4/8.13.1) with ESMTP id j74H8EBA097692; Thu, 4 Aug 2005 10:08:14 -0700 (PDT) (envelope-from bakul@bitblocks.com) Message-Id: <200508041708.j74H8EBA097692@gate.bitblocks.com> To: Chuck Swiger In-reply-to: Your message of "Thu, 04 Aug 2005 12:49:59 EDT." <42F24737.2060705@mac.com> Date: Thu, 04 Aug 2005 10:08:14 -0700 From: Bakul Shah Cc: freebsd-current@freebsd.org, Steve Kargl 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:08:15 -0000 > PROPERTIES OF LONG DOUBLE > Base = 2 > Significant base digits = 53 (= at least 15 decimal digits) $ cat x.c #include static double x = DBL_MAX; static long double min = LDBL_MIN; static long double max = LDBL_MAX; $ gcc -S x.c $ cat x.s .file "x.c" .data .p2align 3 .type x, @object .size x, 8 x: .long -1 .long 2146435071 .p2align 4 .type min, @object .size min, 12 min: .long 0 .long -2147483648 .long 1 .p2align 4 .type max, @object .size max, 12 max: .long 0 .long -2147483648 .long 32767 .ident "GCC: (GNU) 3.4.4 [FreeBSD] 20050518" So this indicates long double is 15 bits of exponent, 64 bits of mantissa.