Falk Hüffner personal blog
A leap year check in three instructions
How to test for leap years (until year 102499) in the proleptic Gregorian calendar with just three 32-bit instructions, with detailed explanation of the bit-level tricks.
- Points
- 434
- HN comments
- 164
- Submissions
- 1
- Cited by
- 0 commenters
Software EngineeringMath & Algorithms2025
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| May 15, 2025 | A leap year check in three instructions by gnabgib | 434 | 164 |