Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2012 09:42:59 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-hackers@freebsd.org, Mitya <mitya@cabletv.dp.ua>, freebsd-net@freebsd.org
Subject:   Re: Replace bcopy() to update ether_addr
Message-ID:  <alpine.BSF.2.00.1208210942150.33814@wojtek.tensor.gdynia.pl>
In-Reply-To: <5452BF37-3658-4C1F-B965-CE3EA28B6EA5@bsdimp.com>
References:  <50324DB4.6080905@cabletv.dp.ua> <alpine.BSF.2.00.1208201844220.35173@wojtek.tensor.gdynia.pl> <B2BB7724-57A9-40C9-AE9F-FFEC83D9DE9A@bsdimp.com> <alpine.BSF.2.00.1208202117230.19372@wojtek.tensor.gdynia.pl> <5452BF37-3658-4C1F-B965-CE3EA28B6EA5@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> Even without this tagging, the code to do a structure level copy of 6 bytes is going to be tiny...

true.

just to make sure it will be absolutely portable how about

bcopymacaddress(dst,src)

and then define it whatever you find it fastest on any architecture?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1208210942150.33814>