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 _______________________________________________ glob2-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/glob2-devel
