public static float Log(float value) => XMath.Log2(value) * XMath.OneOverLog2E;
static double Log2(double x) => XMath.Log2((float)x);