3 ms·
Originally I used a macro: // this increments the upper 32 bits (log10 T - 1) when >= T is added #define K(T) (((sizeof(#T)-1)<<32) - T) (T is 10,100, etc.)
by kwillets 5y ago
Originally I used a macro:
// this increments the upper 32 bits (log10 T - 1) when >= T is added
#define K(T) (((sizeof(#T)-1)<<32) - T)
(T is 10,100, etc.)