Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81728 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35435 invoked from network); 3 Feb 2015 16:26:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2015 16:26:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.208 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.208 imap2-3.ox.privateemail.com Received: from [192.64.116.208] ([192.64.116.208:40512] helo=imap2-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/E3-20608-AA6F0D45 for ; Tue, 03 Feb 2015 11:26:19 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 5EEE88C0080; Tue, 3 Feb 2015 11:26:16 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6g3clZxlZB8z; Tue, 3 Feb 2015 11:26:16 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 9B0C68C007D; Tue, 3 Feb 2015 11:26:15 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: Date: Tue, 3 Feb 2015 16:26:13 +0000 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <26E1E9F7-5CEE-4C92-AE03-24C8E1743B16@ajf.me> References: <1D8DC03D-0E2C-494C-9ED2-244334F57D8A@ajf.me> <6E8210CD-4BA3-4694-8482-4803F562D77C@ajf.me> <1BEEF374-D8BC-4FE2-8CE0-5EBB1AC4CF04@ajf.me> <3B265E0A-7479-456A-B134-5CA607C68EFF@ajf.me> <1470D29A-2D95-4E03-BEBC-CE1D9AD2FB16@ajf.me> <699DCF46-4DBC-4312-961F-31D36C078999@ajf.me> To: Leigh X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] Zero-fill right shift. From: ajf@ajf.me (Andrea Faulds) > On 3 Feb 2015, at 16:22, Leigh wrote: >=20 > On 3 February 2015 at 15:02, Andrea Faulds wrote: >>=20 >> Why would it be promoted?! The high bit is the 63rd bit. It fits = within a long. >=20 > because >=20 > On 3 February 2015 at 16:08, Andrea Faulds wrote: >>=20 >> $ sapi/cli/php -r '$x =3D 1 << 63; debug_zval_dump($x);' >> bigint(9223372036854775808) refcount(2) Yeah, I see your point now, although I=E2=80=99d question *why* you need = to mess with the high bit. You can still do ^ -1 or something as usual, though. -- Andrea Faulds http://ajf.me/