IPV4: use xor rather than multiple ands for route compare
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 10 Apr 2008 11:00:28 +0000 (04:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Apr 2008 11:00:28 +0000 (04:00 -0700)
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>

No differences found