This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Representation of "double" in powerpc
- From: "John \(Eljay\) Love-Jensen" <eljay at adobe dot com>
- To: "ramesh karra" <karrarm at yahoo dot com>, <gcc-help at gcc dot gnu dot org>
- Date: Fri, 10 Nov 2006 19:53:46 -0800
- Subject: RE: Representation of "double" in powerpc
- References: <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