Re:A leap year check in three instructions
by arp242 on Friday May 16, 2025 @05:46AM
(#44003465)
Lotus 1-2-3 famously considers 1900 a leap year (carried over in Excel for compatibility), presumably because it just does the "(y & 3) != 0" check (arguably a reasonable optimisation given the hardware of the time).
I'd be surprised if someone found this solution before, as it seems both relatively difficult to find and a small optimisation.
I'd be surprised if someone found this solution before, as it seems both relatively difficult to find and a small optimisation.