Re: Optimization for ..._MULTIPLY_LONG on more systems

From: Date: Thu, 09 Nov 2006 16:56:40 +0000
Subject: Re: Optimization for ..._MULTIPLY_LONG on more systems
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-26434@lists.php.net to get a copy of this message
Matt, Looks like a good patch to me. On 8-Nov-06, at 11:46 PM, Matt Wilmas wrote:
Hi, Here's an additional ZEND_SIGNED_MULTIPLY_LONG() for platforms with 32-bit longs that don't use the assembly version (so all Windows systems at least?). On my Windows system, mul_function() is 40% faster with this version (no overflow), which makes PHP's * operator 20% faster; with overflow mul_function() is 20% faster (though I don't see any difference with the * operator). The macro is also used in safe_emalloc()... Patch just against 5_2 as the file versions are the only difference. Matt <multiply_long.txt> --PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Ilia Alshanetsky

« previous php.internals (#26434) next »