j
k
j a
j l
I think I would still say something like
q = 2000000000 + round(log(f)*1000000);
which has the benefit of being portable and that numbers that are close to each other will hash to the same values.
Special cases is needed for inf and nan, though.
Back to the thread
Back to the list