]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: TCP Compound quad root function
authorStephen Hemminger <shemminger@osdl.org>
Tue, 6 Jun 2006 00:29:39 +0000 (17:29 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 18 Jun 2006 04:29:27 +0000 (21:29 -0700)
commite3313a501a51f7570ed6c07e8001d0a56c5ca9fd
tree812c1da0f0052715ae07e3beb088344115c27daf
parent0d69c417028a0ece75ea762d86654e02b689ff22
[TCP]: TCP Compound quad root function

The original code did a 64 bit divide directly, which won't work on
32 bit platforms.  Rather than doing a 64 bit square root twice,
just implement a 4th root function in one pass using Newton's method.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_compound.c