Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 May 2011 19:55:35 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        mdf@freebsd.org
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r221604 - head/usr.sbin/usbdump
Message-ID:  <201105071955.35305.hselasky@c2i.net>
In-Reply-To: <BANLkTimi_Em60n9MZRTcgBDvycqH-pKL5g@mail.gmail.com>
References:  <201105071628.p47GSO16006145@svn.freebsd.org> <201105071836.00660.hselasky@c2i.net> <BANLkTimi_Em60n9MZRTcgBDvycqH-pKL5g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 07 May 2011 19:13:27 mdf@freebsd.org wrote:
> On Sat, May 7, 2011 at 9:36 AM, Hans Petter Selasky <hselasky@c2i.net> 
wrote:
> > On Saturday 07 May 2011 18:28:24 Hans Petter Selasky wrote:
> >>   - Use memcpy() instead of bcopy().
> > 
> > - Use memset() instead of bzero().
> 
> Why?  It usually falls through to the same code in libc.  Is there
> some standardization on memfoo versus bfoo here?

Hi,

I thought that memset() was a compiler builtin and bzero() optimised for 
larger amounts of data?

--HPS



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