From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15126 invoked by alias); 22 Jul 2004 01:27:12 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15112 invoked from network); 22 Jul 2004 01:27:11 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 22 Jul 2004 01:27:11 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1BnSLd-0007Ut-Oh; Wed, 21 Jul 2004 21:26:13 -0400 Date: Thu, 22 Jul 2004 01:27:00 -0000 From: Daniel Jacobowitz To: cgd@broadcom.com Cc: Joel Brobecker , gdb-patches@sources.redhat.com Subject: Re: [RFA] mips-irix SEGV: long doubles are 128 bits long on IRIX Message-ID: <20040722012613.GA28688@nevyn.them.org> Mail-Followup-To: cgd@broadcom.com, Joel Brobecker , gdb-patches@sources.redhat.com References: <20040721212522.GP1278@gnat.com> <20040721212930.GA21706@nevyn.them.org> <20040721233310.GR1278@gnat.com> <20040722003951.GA26928@nevyn.them.org> <20040722004640.GS1278@gnat.com> <20040722004808.GB27215@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-07/txt/msg00299.txt.bz2 On Wed, Jul 21, 2004 at 06:19:34PM -0700, cgd@broadcom.com wrote: > > According to GCC long double is 128-bit for all n64 and n32 targets. > > Note that the actual 'long double' format is *different* between > Linux and IRIX, AFAIK. > > On Linux (w/ glibc), it's 128 bits in the typical IEEE format -- I > don't recall what the exact terminology or specification for 128-bit > IEEE-style value is, tho. (like normal double, but wider mantissa and > wider exponent.) > > On IRIX, if i recall correctly, 'long double' is implemented as a > *pair of doubles*, which allows one to get somewhat-extended > precision, but doesn't allow the complete range of 128-bit IEEE-style. > (I imagine the benefit is, you can do at least some of the 'long > double' ops w/ 'double' FP ops in HW. So, better speed... maybe.) Oh, you're right. We probably need to set the floatformat in one of mips-linux or mips-irix, and the size in mips-tdep... -- Daniel Jacobowitz