Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76510 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49793 invoked from network); 14 Aug 2014 09:44:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2014 09:44:11 -0000 Authentication-Results: pb1.pair.com header.from=php@mabe.berlin; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@mabe.berlin; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mabe.berlin from 80.237.132.171 cause and error) X-PHP-List-Original-Sender: php@mabe.berlin X-Host-Fingerprint: 80.237.132.171 wp164.webpack.hosteurope.de Received: from [80.237.132.171] ([80.237.132.171:32971] helo=wp164.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/71-40673-8E48CE35 for ; Thu, 14 Aug 2014 05:44:10 -0400 Received: from dslb-178-005-089-244.178.005.pools.vodafone-ip.de ([178.5.89.244] helo=[192.168.178.27]); authenticated by wp164.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1XHrZl-0005hQ-GF; Thu, 14 Aug 2014 11:44:05 +0200 Message-ID: <53EC84BF.9000002@mabe.berlin> Date: Thu, 14 Aug 2014 11:43:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: PHP Internals Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;php@mabe.berlin;1408009450;ebe8593a; Subject: Improved logarithm of base 2|10 of standard math function From: php@mabe.berlin (Marc Bennewitz) Hi internals, I have created a PR to improve the base 2 and base 10 of the standard math function "log" to reduce rounding errors. Internally on log(x, 2) the native C function log2(x) and on log(x, 10) the native C function log10(x) will be called. The PR is open since april without any comments! Please please please someone there to merge this. PS: Because of after this PR the following will be the same in PHP log10(x) === log10(x) the function log10 is needless and could be deprecated/removed. I will create an RFC if this PR was merged. Marc