This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]