aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/proc.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-04-10 04:00:28 -0700
committerDavid S. Miller <davem@davemloft.net>2008-04-10 04:00:28 -0700
commitc0b8c32b1c96afc9b32b717927330025cc1c501e (patch)
tree34997f5e86aa375746ecbe4f2c8899b4fa774a5e /net/sctp/proc.c
parent996b1dbadcbcafb899f022303e01d46ab87920eb (diff)
downloadkernel_samsung_smdk4412-c0b8c32b1c96afc9b32b717927330025cc1c501e.zip
kernel_samsung_smdk4412-c0b8c32b1c96afc9b32b717927330025cc1c501e.tar.gz
kernel_samsung_smdk4412-c0b8c32b1c96afc9b32b717927330025cc1c501e.tar.bz2
IPV4: use xor rather than multiple ands for route compare
The comparison in ip_route_input is a hot path, by recoding the C "and" as bit operations, fewer conditional branches get generated so the code should be faster. Maybe someday Gcc will be smart enough to do this? Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/proc.c')
0 files changed, 0 insertions, 0 deletions