Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^3: powerpc double-double arithmetic

by bulk88 (Priest)
on Oct 10, 2013 at 03:10 UTC ( #1057667=note: print w/ replies, xml ) Need Help??

in reply to Re^2: powerpc double-double arithmetic
in thread powerpc double-double arithmetic

From what I know about the x86 long double is that, for PPC, I guess sizeof is returning 16 for alignment reasons. 12 is the actual used portion. A long double is 80 bits/10 bytes on x86. Mingw claims it is 12 bytes in a sizeof.

Comment on Re^3: powerpc double-double arithmetic
Replies are listed 'Best First'.
Re^4: powerpc double-double arithmetic
by syphilis (Chancellor) on Oct 10, 2013 at 03:44 UTC
    for PPC, I guess sizeof is returning 16 for alignment reasons

    With PPC, it actually uses the 16 bytes (in the form of 2 8-byte doubles).
    There are other processors that use 12 bytes but assign 16 bytes (for alignment purposes, as you said).

      So if its vector math op (SSE, etc), its really 2 64 bit doubles and not a "long double". Long double would mean over 64 bits of double/precision. You have "packed data" not a "long double". Does your CPU have 128 bit FP math (see also) or not? Does your compiler emulate 128 bit FP math (GCC yes as __float128)?
        The basics of its arithmetic is here.
        There's no 128 bit FP math with its gcc-4.6.3 compiler. I think the double-double technique precludes it. (Every other gcc-4.6.3 that I've seen has a quadmath.h that provides the __float128 type, but not this one - which is provided by Debian specifically for the PowerPC architecture.)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057667]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2015-11-26 21:51 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (707 votes), past polls