Re: fast bit rotation
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Dec 31, 2003
- 451 views
On Wed, 31 Dec 2003 12:26:34 -0600, Kat <gertie at visionsix.com> wrote: >But those are bytes, not 31 (or 32) bit full integers. When scaled up: >shl=repeat(0,65536*256) Whoops, looks like some of my stupidity rubbed off: that's only 3 bytes or 24-bit integers, btw. I don't think you can buy a 32-bit machine with the needed 32GB memory, so don't bother trying it >i got 29 sec for that run, or 578,515 shifts per sec Yeah, it's not relevant now, but I was actually timing table lookup, not the initialise. I'll get me coat... and me dunce's hat. Pete