diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-05-12 23:23:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-15 00:32:56 +0200 |
commit | 6ff272c9ad65eda219cd975b9da2dbc31cc812ee (patch) | |
tree | 93236fdb1d8f23afe44fc4b7366c1997787cb8cf /include/net/ip6_route.h | |
parent | Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-merge (diff) | |
download | linux-6ff272c9ad65eda219cd975b9da2dbc31cc812ee.tar.xz linux-6ff272c9ad65eda219cd975b9da2dbc31cc812ee.zip |
codel: use u16 field instead of 31bits for rec_inv_sqrt
David pointed out gcc might generate poor code with 31bit fields.
Using u16 is more than enough and permits a better code output.
Also make the code intent more readable using constants, fixed point arithmetic
not being trivial for everybody.
Suggested-by: David Miller <davem@davemloft.net>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip6_route.h')
0 files changed, 0 insertions, 0 deletions