Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by DrHyde (Prior)
on Dec 09, 2014 at 11:56 UTC ( #1109711=note: print w/replies, xml ) Need Help??


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

The normal way to figure out how big your ints are is this:
use constant MAXINT => ~0;
which is quite a bit easier to read.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2020-10-26 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (253 votes). Check out past polls.

    Notices?