Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77867 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4637 invoked from network); 10 Oct 2014 23:28:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2014 23:28:22 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:40019] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/65-06615-59B68345 for ; Fri, 10 Oct 2014 19:28:22 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id AC7CF2400D1; Fri, 10 Oct 2014 19:28:18 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tMuaksoboMDM; Fri, 10 Oct 2014 19:28:18 -0400 (EDT) Received: from oa-res-26-28.wireless.abdn.ac.uk (oa-res-26-28.wireless.abdn.ac.uk [137.50.26.28]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 5FCA82400D3; Fri, 10 Oct 2014 19:28:16 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: <54385BC4.8030405@lsces.co.uk> Date: Sat, 11 Oct 2014 00:28:12 +0100 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: References: <8C47FA53-0964-49C0-963C-332A936348A5@ajf.me> <54385BC4.8030405@lsces.co.uk> To: Lester Caine X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] [RFC] Big Integer Support From: ajf@ajf.me (Andrea Faulds) On 10 Oct 2014, at 23:20, Lester Caine 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=92s not a =93wrong approach=94. -- Andrea Faulds http://ajf.me/