This 👇🏽 is good 👌🏽:
“A Leap Year Check In Three Instructions”, Falk Hüffner (https://hueffner.de/falk/blog/a-leap-year-check-in-three-instructions.html).
Via HN: https://news.ycombinator.com/item?id=43999748
On Lobsters: https://lobste.rs/s/ybjgex/leap_year_check_three_instructions
#Optimization #Assembly #Compilers #GCC #Math #LeapYear #GregorianCalendar #BitTwiddling #Speed