Re: largely OT: a random-number generator and bzip2



Jim Leonard skrev:
> Not on modern platforms; for example, the most recent generation of
> Intel and AMD processors can perform more than one
> multiply/divide/modulo operations *per cycle* due to multiple
> pipelines. So there is no penalty if that is your target platform.

Not true for integer math on a Pentium 4 where, according to a simple
benchmark test, imul is at least 10x faster than idiv.

/JN

.



Relevant Pages