Re: Optimization for ..._MULTIPLY_LONG on more systems

From: Date: Thu, 09 Nov 2006 14:06:43 +0000
Subject: Re: Optimization for ..._MULTIPLY_LONG on more systems
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-26432@lists.php.net to get a copy of this message
Matt Wilmas wrote: > Hi Nuno, > > ----- Original Message ----- > From: "Nuno Lopes" > Sent: Thursday, November 09, 2006 > > > >> Great patch! From my quick tests I got about 35% performance increase. >> Ah, it needs a little tweak to work on windows, as 'long long' is defined >> > as > >> __int64 (probably we could do a typedef once for all, as there are already >> many #ifdefs in the code because of this). >> > > Did it not work for you as-is on Windows...? It did for me, since it seems > there's already a typedef for __int64 -> long long. I'd wondered the same, > but before I added the (double) cast in case of overflow, I got the > "Conversion from *__int64* to double: possible loss of precision" warning. > :-) > > Glad you and Andi like the patch though! I didn't know if there'd be any > interest, LOL. I'll respond to Andi's message later... > Could be compiler version. VC6 doesn't support "long long", but I've heard that the new versions supported it. Edin

« previous php.internals (#26432) next »