Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A fast alternative to the modulo reduction (2016).
It reminds me of the sort of tricks I used as a teenager back in the 90s to speed up my MS-DOS graphics code.
Another trick: You can perform rounding by adding fixed-point 1/2 before the bit shift.
That's exactly how I described this trick in code-comments.
It reminds me of the sort of tricks I used as a teenager back in the 90s to speed up my MS-DOS graphics code.
Another trick: You can perform rounding by adding fixed-point 1/2 before the bit shift.