Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mjcohen
· 2y ago · 0 comments
What if n is not a multiple of 4? There is a trick I can't recall at the moment for handling this with a case statement on n mod 4 at the end to wrap this up.
Comments
[–]
jbboehr
2y ago
I assume you're thinking of:
https://en.wikipedia.org/wiki/Duff%27s_device