Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75521 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1347 invoked from network); 15 Jul 2014 00:58:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jul 2014 00:58:19 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.83 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.83 smtp83.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.83] ([108.166.43.83:47414] helo=smtp83.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/83-15121-6AC74C35 for ; Mon, 14 Jul 2014 20:58:18 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp3.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 405421803E5; Mon, 14 Jul 2014 20:58:11 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp3.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id EBC841804AE; Mon, 14 Jul 2014 20:58:10 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local ([UNAVAILABLE]. [74.85.23.222]) (using TLSv1 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.4); Tue, 15 Jul 2014 00:58:11 GMT Message-ID: <53C47CA2.4050306@sugarcrm.com> Date: Mon, 14 Jul 2014 17:58:10 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Andrea Faulds , PHP internals References: <7646A8D1-69A2-4255-B048-D3B9F28B422F@ajf.me> In-Reply-To: <7646A8D1-69A2-4255-B048-D3B9F28B422F@ajf.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] intdiv() From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > It elaborates a little more, so I’d suggest reading it first. What > are your thoughts? I think this is a simple and obvious addition. INT_MAX is kind of an edge case, if you need arbitrary-length precision you can always use gmp or bcmath. I'm not sure this one-off use case that is already covered by two extensions really needs another function. Practically, where would you need exact division up to 53 bits but not beyond? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/