[patch] New pow function

From: Date: Wed, 04 Jul 2001 00:05:49 +0000
Subject: [patch] New pow function
Groups: php.dev 
Request: Send a blank email to php-dev+get-58835@lists.php.net to get a copy of this message
Hi, I've fixed some bugs in the function, and believe it is now correct. It's best to come up with a whole bunch of tests, since there are 25 conditional expressions in it, for 25 different cases... This is due to the nature of pow(), and the fact it is now overloaded. pow(0,0) is now fixed to return 1, as it should, and not 0 (???). The tests will follow soon. I think it's important to test it on platforms with 64-bit longs. (by the way, this function replaces the one in php4/ext/standard/math.c) If nobody reports any problems, can someone commit it? I don't have the karma. Greetz, Jeroen

Attachment: [application/octet-stream] new_pow_func.c
« previous php.dev (#58835) next »