Comment on A Fast 64-Bit Date Algorithm (30–40% faster by counting dates backwards)Comments−pyrolistical9moFor something this short that is pure math, why not just hand write asm for the most popular platforms? Prevents compiler from deoptimizing in the future.Have a fallback with this algorithm for all other platforms.−flumpcakes9moThis pretty much is assembly written as C++... there's not much the compiler can ruin.−Jaxan9moBecause that isn’t portable?
Comments
For something this short that is pure math, why not just hand write asm for the most popular platforms? Prevents compiler from deoptimizing in the future.
Have a fallback with this algorithm for all other platforms.
This pretty much is assembly written as C++... there's not much the compiler can ruin.
Because that isn’t portable?