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 perusing the Monastery: (3)
As of 2023-03-21 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (59 votes). Check out past polls.

    Notices?