Unsigned Integer to Double Considered Harmful
A little detail that can hurt your algo performance
Motivation
Converting a 64 bit unsigned integer to double seem to be such a mundane operation that most people just take for granted that the compiler would handle it in a performant way. But ends up …