On 12/12/2014 11:20 AM, Sage Weil wrote:
We can't use floating point. The code needs to run in the kernel. We also need the rseults to be perfectly deterministic and consistent across all architectures; I'm not sure if all floating point implementations (and log implementations) will do that?
Have a look at this (using the code I pointed to before): https://gist.github.com/joelandman/ec6f3abef9bc5f1c7b0e
Running on my desktop box, library double function (with casts) is about 3x slower than the local log_2 version.
-- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html