Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26426 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13803 invoked by uid 1010); 9 Nov 2006 05:19:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13787 invoked from network); 9 Nov 2006 05:19:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2006 05:19:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=andi@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=andi@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:48339] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/44-12290-B6AB2554 for ; Thu, 09 Nov 2006 00:19:42 -0500 Received: (qmail 21062 invoked from network); 9 Nov 2006 05:18:12 -0000 Received: from localhost (HELO ANDILENOVO) (127.0.0.1) by localhost with SMTP; 9 Nov 2006 05:18:12 -0000 To: "'Matt Wilmas'" , Date: Wed, 8 Nov 2006 21:19:35 -0800 Message-ID: <069301c703be$a7121c40$6800a8c0@zend.2k> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Thread-Index: AccDuiFAtDoQT5eSQM6WZRe8J86nYgABHu3w In-Reply-To: <008601c703ba$0a9f4940$0201a8c0@pc1> Subject: RE: [PHP-DEV] Optimization for ..._MULTIPLY_LONG on more systems From: andi@zend.com ("Andi Gutmans") References: <008601c703ba$0a9f4940$0201a8c0@pc1> Nice patch! Looks good to me... Any other thoughts? > -----Original Message----- > From: Matt Wilmas [mailto:php_lists@realplain.com] > Sent: Wednesday, November 08, 2006 8:47 PM > To: internals@lists.php.net > Subject: [PHP-DEV] Optimization for ..._MULTIPLY_LONG on more systems > > 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 >