From: "John \(Eljay\) Love-Jensen" <eljay@adobe.com>
To: "ramesh karra" <karrarm@yahoo.com>, <gcc-help@gcc.gnu.org>
Subject: RE: Representation of "double" in powerpc
Date: Sat, 11 Nov 2006 03:53:00 -0000 [thread overview]
Message-ID: <EDC8DDD212FEB34C884CBB0EE8EC2D9121661F@namailgen.corp.adobe.com> (raw)
In-Reply-To: <20061110231018.14900.qmail@web37214.mail.mud.yahoo.com>
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 address.
HTH,
--Eljay
http://en.wikipedia.org/wiki/IEEE_754
prev parent reply other threads:[~2006-11-11 3:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-10 23:10 ramesh karra
2006-11-11 3:53 ` John (Eljay) Love-Jensen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EDC8DDD212FEB34C884CBB0EE8EC2D9121661F@namailgen.corp.adobe.com \
--to=eljay@adobe.com \
--cc=gcc-help@gcc.gnu.org \
--cc=karrarm@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).