Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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.

Cheers,
Rob

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 ?

      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://747283]
help
Chatterbox?
and God said, "Let Newton be!"...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2018-05-24 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?