svn commit: r303811 - in head/sys: net net80211
Bruce Simpson
bms at fastmail.net
Sun Aug 7 23:59:38 UTC 2016
On 07/08/16 20:23, Peter Jeremy wrote:
>> On 08/07/16 05:48, Adrian Chadd wrote:
>>> +#define ETHER_IS_BROADCAST(addr) \
...
> IMHO, Adrian's code is clearer and micro-optimisations like this belong
> in the complier, not the code.
*cough* *cough* 2007 wants its patch back.
https://people.freebsd.org/~bms/dump/old/latest-8021p.diff
The whole point of using bcmp() was to allow it to be inlined by the
compiler for the target arch, rather than forcing it to play guessing
games with (lowest-common-denominator machine-word-size) integer accesses.
ETHER_IS_MULTICAST(), by contrast, only needs to check a single bit in
the 48-bit MAC.
More information about the svn-src-head
mailing list