This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: switch question in recog.c
- From: Michael Matz <matz at suse dot de>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 8 Oct 2003 00:38:54 +0200 (CEST)
- Subject: Re: switch question in recog.c
Hi,
On Tue, 7 Oct 2003, DJ Delorie wrote:
> > Constructed useless example (i.e. not the usual memcpy() unrolling):
>
> Duff's device wasn't a memcpy() unrolling.
See again http://www.lysator.liu.se/c/duffs-device.html commenting from
Tom himself. His initial posting was about the loop
send(short *to, short *from, int count)
{ do *to = *from++; while(--count>0); }
That's basically a memcpy(). I'm not old enough to know if Tom really is
the inventor of this "use" of C features, but not even Tom remembers ;-)
Ciao,
Michael.