Re: Other Integers for php 6
| From: | Adam Maccabee Trachtenberg | Date: | Thu, 09 Feb 2006 19:30:38 +0000 |
| Subject: | Re: Other Integers for php 6 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21823@lists.php.net to get a copy of this message | ||
On Thu, 9 Feb 2006, Ezra Nugroho wrote:
> I have a task that requires bitflag operations. Having only 16 bits to
> deal with is really bad (I only care about positive int). Having 32
> positive bits in PHP 6 is certainly an improvement, but if I can get all
> 64, then live would be much better.
It's not as nice as native, but GMP allows arbitrary-length integers
and has bit-wise operators.
http://www.php.net/gmp
-adam
--
adam@trachtenberg.com | http://www.trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!