Re:Clever code is probably the worst code you could write
by mjcohen on Wednesday May 22, 2024 @01:08PM
(#40443385)
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.
[ Parent
| on HN ]
Re:Clever code is probably the worst code you could write
by jbboehr on Thursday May 23, 2024 @03:46AM
(#40451753)
I assume you're thinking of: https://en.wikipedia.org/wiki/Duff%27s_device