On 12/1/2021 at 7:14 PM, Scott Robison said:
My algorithm was fast!
Yeah - you're just over 1 scanline of raster time. Mine's 2.5, General is 18 scan lines.
On 12/1/2021 at 7:14 PM, Scott Robison said:
My algorithm was fast!
On 12/2/2021 at 12:02 PM, ZeroByte said:
Yeah - you're just over 1 scanline of raster time. Mine's 2.5, General is 18 scan lines.
On 12/2/2021 at 4:39 PM, BruceMcF said:
I don't know if my last code above works correctly, but I think it's on the order of 130 clock cycles. Fully unrolled loops saves a lot of that, since even three byte shifts by two bits don't save a lot of space by looping.
On 12/3/2021 at 12:29 AM, ZeroByte said:
Quote
Could be. I didn't analyze the question of "how to efficiently divide by 60". I just tried to find the fastest way to code the original expression given. Not to say I found the fastest way, just that I had noticed all the bit shifts were 8 bits off another bit shift, so I was able to avoid most bit twiddling and just do repeated adds with the bytes aligned to different positions.