Le jeudi 19 février 2009, Christian Couder a écrit : > So the improved algorithm could be something like: > > static int estimate_bisect_steps(int all) > { > int n, x, e; > float p; Oops, the line above is not needed. > if (all < 3) > return 0; > > n = log2(all); > e = exp2(n); > x = all - e; > > return (e < 3 * x) ? n : n - 1 ; > } -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html