From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1840 invoked by alias); 11 Nov 2006 03:53:59 -0000 Received: (qmail 1829 invoked by uid 22791); 11 Nov 2006 03:53:58 -0000 X-Spam-Check-By: sourceware.org Received: from exprod6og52.obsmtp.com (HELO exprod6og52.obsmtp.com) (64.18.1.185) by sourceware.org (qpsmtpd/0.31) with SMTP; Sat, 11 Nov 2006 03:53:52 +0000 Received: from source ([192.150.11.134]) by exprod6ob52.postini.com ([64.18.5.12]) with SMTP; Fri, 10 Nov 2006 19:53:50 PST Received: from inner-relay-3.eur.adobe.com (inner-relay-3.adobe.com [192.150.20.198] (may be forged)) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id kAB3pBvV023637; Fri, 10 Nov 2006 19:51:12 -0800 (PST) Received: from fe1.corp.adobe.com (fe1.corp.adobe.com [10.8.192.70]) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id kAB3rleA023327; Fri, 10 Nov 2006 19:53:47 -0800 (PST) Received: from namailgen.corp.adobe.com ([10.8.192.91]) by fe1.corp.adobe.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 10 Nov 2006 19:53:46 -0800 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Representation of "double" in powerpc Date: Sat, 11 Nov 2006 03:53:00 -0000 Message-ID: References: <20061110231018.14900.qmail@web37214.mail.mud.yahoo.com> From: "John \(Eljay\) Love-Jensen" To: "ramesh karra" , X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg00170.txt.bz2 Hi Ramesh, The double type on PowerPC with GCC is represented in IEEE 754 fashion. 64= bits "double precision". SXXXXXXX XXXXIMMMM MMMMMMMM MMMMMMMM MMMMMMMM MMMMMMMM MMMMMMMM MMMMMMMM S is the 1 sign bit X is the 11 exponent bits (+1023 biased) I is the implied (virtual) most-significant bit for normalized numbers M is the 52 mantissa bits The order above is byte-by-byte from low memory address to high memory addr= ess. HTH, --Eljay http://en.wikipedia.org/wiki/IEEE_754