A Very Fast 64–Bit Date Algorithm: 30-40% faster

26 points by fanf


classichasclass

The ARM changes probably help for other RISCy things like Power ISA or MIPS that also have limited space for immediates in a single instruction.

hwj

Given: days = Days since epoch

I usually use epoch seconds for timestamps.

Can this algorithm still be used by feeding it with "epoch days = epoch seconds / 86400" without considering leap seconds?