Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: reliably test integer size for portable bit-fiddling? (~0)by wollmers (Scribe) |
on Dec 09, 2014 at 08:46 UTC ( [id://1109695]=note: print w/replies, xml ) | Need Help?? |
Hmm, I tried a similar idea (get the index of the highest bit), but it failed. Now I remember:
Thx, this is extremely fast and IMHO reliable, because it tests the capabilty directly. Helmut "wollmers" Wollmersdorfer
In Section
Seekers of Perl Wisdom
|
|