Re: [RFC] Big Integer Support

From: Date: Fri, 10 Oct 2014 23:40:05 +0000
Subject: Re: [RFC] Big Integer Support
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 11/10/14 00:28, Andrea Faulds wrote:
> 
> On 10 Oct 2014, at 23:20, Lester Caine <[email protected]> wrote:
> 
>> Is this the right approach to implement BIGINT?
>> I don't see the use of GMP to implement something as simple as native 64
>> bit numbers on 64 bit platforms as the right base.
> 
> Um, we already have this since the 64-bit patch.
> 
>> All we are missing is
>> correctly handling two word data on a 32bit platform. The wrapping and
>> everything still applies, but only on a 32 bit platform ... no need for
>> the complication of GMP. The bit I'm looking at here IS using BIGINT as
>> array keys without the problems of them changing to long strings and I
>> don't see how GMP fixes that?
> 
> What you want is 64-bit data handling. This is arbitrary-bit data handling. It’s not a
> “wrong approach”.

So BIGINT on 32 bit platforms will be different to BIGINT on 64 bit
platforms? BIGINT is a fix length number not a variable one ...

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk


Thread (70 messages)

« previous php.internals (#77868) next »