From owner-freebsd-amd64@FreeBSD.ORG Tue Feb 21 15:23:43 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 047C11065673 for ; Tue, 21 Feb 2012 15:23:43 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id D80DF8FC17 for ; Tue, 21 Feb 2012 15:23:42 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id q1LFNgS2012510; Tue, 21 Feb 2012 07:23:42 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id q1LFNgfV012509; Tue, 21 Feb 2012 07:23:42 -0800 (PST) (envelope-from sgk) Date: Tue, 21 Feb 2012 07:23:42 -0800 From: Steve Kargl To: "Thomas D. Dean" Message-ID: <20120221152342.GA12463@troutmask.apl.washington.edu> References: <4F3EA37F.9010207@speakeasy.org> <4F3EC0B4.6050107@speakeasy.org> <20120221072053.GA10302@troutmask.apl.washington.edu> <4F4351F0.2000608@speakeasy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F4351F0.2000608@speakeasy.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-amd64@freebsd.org Subject: Re: Gcc46 and 128 Bit Floating Point X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2012 15:23:43 -0000 On Tue, Feb 21, 2012 at 12:12:32AM -0800, Thomas D. Dean wrote: > On 02/20/12 23:20, Steve Kargl wrote: > > >float --------> 24 bit significand, 32 bit size. > >double -------> 53 bit significand, 64 bit size. > >long double --> 53 bit significand, 80 bit size, i386 > >long double --> 64 bit significand, 80 bit size, x86_64 > >long double --> 113 bit significand, 128 bit size, sparc64 > >__float128 ---> 113 bit significand, 128 bit size, i386, x86_64 > > > > Nice, if you are not working on my platform. In my initial message, > > From dmesg: > CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz (4160.12-MHz K8-class CPU) > Origin = "GenuineIntel" Id = 0x206d6 Family = 6 Model = 2d > Stepping = 6 I saw your initial message, and yes, I noted that you are using an x86_64 class cpu. > And, I also said the __float128 is likely to leave me with some code > that is orphaned. As long as you use gcc 4.something or higher, you should have access to __float128. So, code won't be orphaned. Now, if you meant nonportable code, I agree. If you need more precision that C99's long double and portability, then use mpfr. -- Steve