Re: Fw: Bumping PHP to support 8byte integers
| From: | mlwmohawk at mohawksoft dot com | Date: | Mon, 24 Sep 2001 00:47:44 +0000 |
| Subject: | Re: Fw: Bumping PHP to support 8byte integers | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66438@lists.php.net to get a copy of this message | ||
>> I would be very worried about making numbers 8 bytes by default,
>> unless the CPU supports them natively. There are a lot of consequenses
>> involved with something like that.
>>
>> Assuming a 32 bit register system (x86) integers will no longer fit in
>> registers. This changes EVERYTHING, from passing them to functions, to
>> how arithatic is performed. Nor am I sure what the state of compilers
>> are in all PHP's supported environments, do the compilers handle "long
>> long?"
>
> These are problems indeed, it is just an idea, I don't know what the
> performance impacts are. Unfortunately it's quite a work to change it,
> otherwise it's a question of trying it and see what the impact is on
> typical scripts.
Hey, it's open source, go for it dude. Let us know.
>
> For compilers possibly not supporting "long long", it's about wether
> they support 64bit integers. Does someone know how the support of 64bit
> integers is in compiler-land?
On the 32bit environments, 64bit integers are implemented as long long,
unless you want to implement the 64bit manipulation routines yourself
(yikes.)