commit | c5f5877c043ca471c3a607fa2c864848b19bc49a | [log] [tgz] |
---|---|---|
author | Stephen Hemminger <shemminger@linux-foundation.org> | Sun Mar 25 20:21:15 2007 -0700 |
committer | David S. Miller <davem@sunset.davemloft.net> | Wed Apr 25 22:23:47 2007 -0700 |
tree | b28d6cf22a0fc96f86a5c07a1b64cd8a2d3c7668 | |
parent | 8570419fb7be0af84085ac8f13307392a748482c [diff] |
[TCP] tcp_cubic: faster cube root The Newton-Raphson method is quadratically convergent so only a small fixed number of steps are necessary. Therefore it is faster to unroll the loop. Since div64_64 is no longer inline it won't cause code explosion. Also fixes a bug that can occur if x^2 was bigger than 32 bits. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>