switch question in recog.c
Michael Matz
matz@suse.de
Tue Oct 7 22:38:00 GMT 2003
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.
More information about the Gcc
mailing list