RE: Representation of "double" in powerpc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux