Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76319 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52415 invoked from network); 3 Aug 2014 12:48:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2014 12:48:48 -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.207 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.207 imap2-2.ox.privateemail.com Received: from [192.64.116.207] ([192.64.116.207:44561] helo=imap2-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/42-25844-EAF2ED35 for ; Sun, 03 Aug 2014 08:48:47 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id BC3098C0081; Sun, 3 Aug 2014 08:49:08 -0400 (EDT) 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 66-C-ACY2Oe3; Sun, 3 Aug 2014 08:49:08 -0400 (EDT) Received: from [192.168.0.15] (unknown [90.210.122.167]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 5C3AA8C0080; Sun, 3 Aug 2014 08:49:06 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: <53DE29F3.7030101@lsces.co.uk> Date: Sun, 3 Aug 2014 13:49:03 +0100 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <739E5BAE-A01D-4936-A016-8CD90CD64BA1@ajf.me> <218DB0E9-B785-4E86-A74C-A59B428DB037@ajf.me> <53DE29F3.7030101@lsces.co.uk> To: Lester Caine X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] [VOTE][RFC] intdiv() From: ajf@ajf.me (Andrea Faulds) On 3 Aug 2014, at 13:24, Lester Caine wrote: > That the principle of sorting out 64 bit division is accepted is = fairly > obvious from the current stated of the vote? Personally I still view > this as part of the general debate on just how 64bit integers are > supported by default in new builds of PHP, in which situation, simply > throwing a new operator at it is not fixing the basic fault in = "(int)(3 > / 2)"? Having to decided is one needs a different operator on 64bit > systems is still wrong what ever that operator is? You don=92t need a different operator on 64-bit systems, the point is = that using (int) with / is an ugly hack that just so happens to only = break on 64-bit systems. You could do 3 %% 2 or intdiv(3, 2) on both = 32-bit or 64-bit. -- Andrea Faulds http://ajf.me/