svn commit: r237203 - head/sys/dev/fb
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Jun 18 07:54:46 UTC 2012
In message <20120618062912.61088c11.taku at tackymt.homeip.net>, Taku YAMAMOTO wri
tes:
>On Sun, 17 Jun 2012 21:02:48 +0000 (UTC)
>Poul-Henning Kamp <phk at FreeBSD.org> wrote:
>
>> Author: phk
>> Date: Sun Jun 17 21:02:48 2012
>> New Revision: 237203
>> URL: http://svn.freebsd.org/changeset/base/237203
>> +
>> +static __inline void
>> +copyw(uint16_t *src, uint16_t *dst, size_t size)
>> +{
>> + while (size--)
>> + *dst++ = *src++;
>> +}
>
>Does this end up with copying 2*size bytes instead of size bytes?
Indeed it did.
Thanks for spotting my mistake.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the svn-src-all
mailing list