Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71006 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76785 invoked from network); 5 Jan 2014 13:20:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2014 13:20:14 -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 198.187.29.240 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.240 imap2-1.ox.registrar-servers.com Received: from [198.187.29.240] ([198.187.29.240:34832] helo=imap2-1.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/A0-06982-D0C59C25 for ; Sun, 05 Jan 2014 08:20:13 -0500 Received: from [192.168.0.200] (unknown [90.201.41.104]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 4B79D5A005E; Sun, 5 Jan 2014 08:20:08 -0500 (EST) Message-ID: <52C95C06.5030801@ajf.me> Date: Sun, 05 Jan 2014 13:20:06 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Stas Malyshev , Sara Golemon , PHP internals References: <52C90D9F.6080802@sugarcrm.com> In-Reply-To: <52C90D9F.6080802@sugarcrm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Floating Point support in GMP extension From: ajf@ajf.me (Andrea Faulds) On 05/01/14 07:45, Stas Malyshev wrote: > Also, I'm not sure how exactly "all other gmp_*() functions" are > supposed to work on floats - for many of them it just make no sense > (such as factorial or q/r division or modulo), for others like bit > functions it technically could make sense but would probably be not > useful since nobody does bit ops on floats... Maybe it would make more > sense to look into what GMP library does with floats and write different > function set from there? Well, I note that you can do bitwise operations on floats in PHP as it stands, although obviously this is accomplished by rounding. I don't see why we shouldn't allow this for GMP floats, even though its applications are likely limited. -- Andrea Faulds http://ajf.me/