(no title)
captaincrunch | 9 months ago
bool is_leap_year(uint32_t y) { // Works for Gregorian years in range [0, 65535] return ((!(y & 3)) && ((y % 25 != 0) || !(y & 15))); }
captaincrunch | 9 months ago
bool is_leap_year(uint32_t y) { // Works for Gregorian years in range [0, 65535] return ((!(y & 3)) && ((y % 25 != 0) || !(y & 15))); }
andrepd|9 months ago
hoten|9 months ago
windward|9 months ago
Great. It will be useful for the exhaustive tests of the faster version.
kragen|9 months ago
captaincrunch|9 months ago