A leap year check in three instructions(hueffner.de)
386 points by gnabgib | 130 comments
Blog post by Falk Hüffner explaining a leap year check for years 0–102499 using a multiply, mask, and compare in about three CPU instructions.
2 stories tagged leap-year, newest first.
386 points by gnabgib | 130 comments
Blog post by Falk Hüffner explaining a leap year check for years 0–102499 using a multiply, mask, and compare in about three CPU instructions.
445 points by sjr1 | 419 comments
Ask HN thread where users share leap day bugs they encountered, such as billing overcharges and failing date-based unit tests.