RSS Amplifier

Retro Computing - Latest posts · Aug 19, 2026

Leap year check in three instructions

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

hueffner.de – 1 May 25 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. Bit twiddling / integer math dive. (To prove my nerd cred, I have to point out that this solution doesn’t explain/consider the Julian/Gregorian switch, but admittedly…

Read on retrocomputingforum.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.