Date: Wed, 22 Aug 2012 21:54:32 +0200 (CEST) From: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> To: Adrian Chadd <adrian@freebsd.org> Cc: freebsd-hackers@freebsd.org, Mitya <mitya@cabletv.dp.ua>, Warner Losh <imp@bsdimp.com>, John Baldwin <jhb@freebsd.org>, freebsd-net@freebsd.org Subject: Re: Replace bcopy() to update ether_addr Message-ID: <alpine.BSF.2.00.1208222153180.61877@wojtek.tensor.gdynia.pl> In-Reply-To: <CAJ-Vmo=1cbJn3pkSvoCq7y-kEGig-h1Vxo6M5V0=b9=MkfuMRA@mail.gmail.com> References: <50324DB4.6080905@cabletv.dp.ua> <420BA06C-C776-47DB-B3BB-F1414C115F99@bsdimp.com> <CAJ-VmokQLD6YgyrsOyez=3cLm4Q8jZOnJ9vo4Wq3sjRu%2BG-E7A@mail.gmail.com> <201208220802.14588.jhb@freebsd.org> <CAJ-Vmo=1cbJn3pkSvoCq7y-kEGig-h1Vxo6M5V0=b9=MkfuMRA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> but wonder whether the same does hold for MIPS/ARM. Getting it wrong > there will lead to some very very poor performing code. > 1) do - as already pointed out - standard copy of structure in C. 2) if compiler is found to generate bad code on some archs put assembly. 1 even if compiler is not smart is already far better than calling a function to copy 6 bytes that is plain stupid.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1208222153180.61877>