Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: reliably test integer size for portable bit-fiddling?

by Perlbotics (Archbishop)
on Dec 08, 2014 at 19:57 UTC ( [id://1109632]=note: print w/replies, xml ) Need Help??


in reply to reliably test integer size for portable bit-fiddling?

I think so. Perhaps, it is also an option for you to ask perl itself with the help of core module Config?

perl -e 'use Config; print $Config{use64bitint} eq "define" ? "yes, " + : "not ", "64bit perl\n"'

Result (here):

yes, 64bit perl

Replies are listed 'Best First'.
Re^2: reliably test integer size for portable bit-fiddling?
by Tux (Canon) on Dec 09, 2014 at 07:32 UTC

    For that kind of inquiry, perl has extended use for the -V option, supporting regular expressions et all:

    $ perl -V:'use64bit(int|all)|[iu]vsize' ivsize='8'; use64bitall='define'; use64bitint='define'; uvsize='8';

    Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found