Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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
Domain Nodelet?
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 lurking in the Monastery: (5)
As of 2022-12-09 23:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?