Date: Mon, 18 Jun 2012 07:54:43 +0000 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Taku YAMAMOTO <taku@tackymt.homeip.net> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r237203 - head/sys/dev/fb Message-ID: <24166.1340006083@critter.freebsd.dk> In-Reply-To: Your message of "Mon, 18 Jun 2012 06:29:12 %2B0900." <20120618062912.61088c11.taku@tackymt.homeip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20120618062912.61088c11.taku@tackymt.homeip.net>, Taku YAMAMOTO wri tes: >On Sun, 17 Jun 2012 21:02:48 +0000 (UTC) >Poul-Henning Kamp <phk@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@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?24166.1340006083>