From: Stephen Hemminger Date: Thu, 10 Apr 2008 11:00:28 +0000 (-0700) Subject: IPV4: use xor rather than multiple ands for route compare X-Git-Tag: v2.6.26-rc1~1138^2~131 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0b8c32b1c96afc9b32b717927330025cc1c501e;p=pandora-kernel.git 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 Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed