Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.074 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'sep': 0.09; 'cc:addr :python-list': 0.10; '12:59': 0.16; 'clocks': 0.16; 'himself.': 0.16; 'measured': 0.16; 'processor,': 0.16; 'processors': 0.16; 'wrote:': 0.17; 'intel': 0.17; '>>>': 0.18; 'versions': 0.20; 'mostly': 0.20; 'hey': 0.21; 'cc:2**0': 0.23; 'seems': 0.23; 'cc:no real name:2**0': 0.24; 'paul': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'thanks!': 0.26; 'am,': 0.27; 'environment': 0.29; 'writes:': 0.29; 'instruction': 0.32; 'says': 0.33; 'pm,': 0.35; 'url:org': 0.36; 'subject:" ': 0.36; 'does': 0.37; 'two': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'subject:-': 0.40; 'most': 0.61; 'due': 0.66; 'home': 0.66; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; '100': 0.78; 'received:74.208.4.194': 0.84; 'subject:Floor': 0.84; 'unclear': 0.84; 'rusi': 0.91; 'sheet': 0.93 Date: Fri, 07 Sep 2012 13:12:24 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: rusi Subject: Re: Bitshifts and "And" vs Floor-division and Modular References: <7xwr065u78.fsf@ruckus.brouhaha.com> <7295a1ce-f89b-4fba-bcc7-1e23135f25a7@v9g2000pbu.googlegroups.com> In-Reply-To: <7295a1ce-f89b-4fba-bcc7-1e23135f25a7@v9g2000pbu.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:Vz878SsH07mdu2W8HJfCUdigEK+mzJcdvSBUe81OS2K wV0yiiV+/OjhHJZmRQIyocVrLUxEbXWTpwMzjr8xtvP+WVhWcu BgWaRGrEdydusizCuuAAay4U3pVQfkVfxMfTMLcVXdEasZ4fSx J+yFNEgJ/bKZuGwuV7UwP09Gdj5vE/6f3dlsQDMARzcdExmfuQ SN9TXAh+YW5QUjn1raBDSpfP8h2BUKUPBUpEdolHKDnxN6WI+C bd5aJlAh8eehJWNes4AAsm2yJPI0Kf1gZBlc8RAqI/tloevVYQ 2Ri3n620oDINBwSyc9XjvO6Q6YDtcA9ywFmawwZ/vBsLSVC7w= = Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: d@davea.name List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347037969 news.xs4all.nl 6899 [2001:888:2000:d::a6]:49985 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28697 On 09/07/2012 12:59 PM, rusi wrote: > On Sep 7, 9:32 am, Paul Rubin wrote: >> rusi writes: >>> On an 8086/8088 a MUL (multiply) instruction was of the order of 100 >>> clocks ... On most modern processors (after the pentium) the >>> difference has mostly vanished. I cant find a good data sheet to >>> quote though >> See http://www.agner.org/optimize/: > Hey Thanks! Seems like a nice resource! How on earth does he come up > with the data though, when Intel does not publish it? As he says on the home page, he measured the data himself. Unclear how repeatable such data may be, either due to environment or to multiple versions of the processor, and from two vendors. -- DaveA