Re: [RFC] Big Integer Support

From: Date: Fri, 10 Oct 2014 23:28:12 +0000
Subject: Re: [RFC] Big Integer Support
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-77867@lists.php.net to get a copy of this message
On 10 Oct 2014, at 23:20, Lester Caine <lester@lsces.co.uk> 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”. -- Andrea Faulds http://ajf.me/

« previous php.internals (#77867) next »