Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: maximum value of a scalar

by syphilis (Chancellor)
on Mar 01, 2009 at 09:38 UTC ( #747283=note: print w/replies, xml ) Need Help??

in reply to Re^2: maximum value of a scalar
in thread maximum value of a scalar

I'm trying to compile for quadruple floats

What is your compiler's C data type for these "quadruple floats" ? I had assumed that, if a C compiler could handle "quadruple floats", it would be handling them as "long doubles" - in which case building with -Duselongdouble might do the trick.


Replies are listed 'Best First'.
Re^4: maximum value of a scalar
by Anonymous Monk on Mar 02, 2009 at 05:57 UTC
    I'm using gcc on linux. Not sure what the compiler's data type for "quadruple floats" is, though "long doubles" are 16 bytes accordint to ./Configure. It seems that (2^128) should be enough. I have long doubles turned on, and general 64 bit turned on, but I still max out at 2^64 instead of 2^113. Is there an additional gcc flag I can pass in that anyone knows of to get the 2^113 limit? Thanks! Scott
      though "long doubles" are 16 bytes accordint to ./Configure

      Probably worth running a C program that will printf("%d\n", sizeof(long double));
      Then you'll know for sure.

      What does perl -V output for this build of perl ?


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://747283]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2018-01-23 05:22 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (238 votes). Check out past polls.