A leap year check in three instructions
A leap year check in three instructions
Falk Hüffner
hueffner.de
Related
Highlights
bool is_leap_year_fast(uint32_t y) {
return ((y * 1073750999) & 3221352463) <= 126976;
}
A leap year check in three instructions