[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [glob2-devel] Division is bad...
From: |
Cyrille Dunant |
Subject: |
Re: [glob2-devel] Division is bad... |
Date: |
Sat, 8 Jul 2006 11:57:04 +0200 |
User-agent: |
KMail/1.9.3 |
On Saturday 08 July 2006 11:53, Stéphane Magnenat wrote:
> .. just a reminder in case people think that division is fast those days :
>
> idiv, number of cycle :
> - Pentium 4 80 cycles
> - Core 15 cycles
> - Core 2 17 cycles
> - Athlon 64 40 cycles
>
> As a comparaison, imul is 1 cycle everywhere and shl, rol is 0.33 cycle (3
> shift per cycle) in Athlon 64.
>
> Have a nice day,
>
> Steph
Yes, but we all expect the compiler to make divisions into multiplications
when possible :)
CU
-- CFD