]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ETHERNET]: Optimize is_broadcast_ether_addr
authorStephen Hemminger <shemminger@osdl.org>
Wed, 2 Nov 2005 00:52:11 +0000 (16:52 -0800)
committerArnaldo Carvalho de Melo <acme@mandriva.com>
Wed, 2 Nov 2005 23:54:07 +0000 (21:54 -0200)
commit2407534f8be8015d585104bcc4374870b6b70fe7
treefba7cb22827991ccf447824a6b2d66a543b27e21
parent450b5b18983cc15f4d27bd3f62901e02281e818b
[ETHERNET]: Optimize is_broadcast_ether_addr

Optimize the match for broadcast address by using bit operations instead
of comparison. This saves a number of conditional branches, and generates
smaller code.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
include/linux/etherdevice.h