Hacker News new | ask | show | jobs
by tuix 3519 days ago
The Duff's device example is incorrect. In n%4, the value of n before n=(n+3)/4 should be used, not after that.
1 comments

Thanks, I modified it from an example one but introduced some mistakes. I've corrected it and tested it this time.