diff options
| author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-03-26 07:21:15 +0400 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 09:23:47 +0400 |
| commit | c5f5877c043ca471c3a607fa2c864848b19bc49a (patch) | |
| tree | b28d6cf22a0fc96f86a5c07a1b64cd8a2d3c7668 /scripts/basic | |
| parent | 8570419fb7be0af84085ac8f13307392a748482c (diff) | |
| download | linux-c5f5877c043ca471c3a607fa2c864848b19bc49a.tar.xz | |
[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>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
