From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7698 invoked by alias); 7 Oct 2003 22:38:55 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 7689 invoked from network); 7 Oct 2003 22:38:54 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sources.redhat.com with SMTP; 7 Oct 2003 22:38:54 -0000 Received: from Hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 5B14716C11DB; Wed, 8 Oct 2003 00:38:54 +0200 (CEST) Date: Tue, 07 Oct 2003 22:38:00 -0000 From: Michael Matz To: DJ Delorie Cc: gcc@gcc.gnu.org Subject: Re: switch question in recog.c In-Reply-To: <200310072233.h97MXQQ14729@greed.delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-10/txt/msg00242.txt.bz2 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.