From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9951 invoked by alias); 31 Jul 2010 16:43:14 -0000 Received: (qmail 9935 invoked by uid 22791); 31 Jul 2010 16:43:13 -0000 X-SWARE-Spam-Status: No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,TW_CP,TW_XP,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 31 Jul 2010 16:43:08 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 1DBBB9417A; Sat, 31 Jul 2010 18:43:06 +0200 (CEST) Date: Sat, 31 Jul 2010 17:21:00 -0000 From: Michael Matz To: Sebastian Pop Cc: Richard Guenther , gcc-patches@gcc.gnu.org Subject: Re: [PATCH 0/2] Loop distribution for memset zero In-Reply-To: Message-ID: References: <1280522440-27919-1-git-send-email-sebpop@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg02441.txt.bz2 Hi, On Sat, 31 Jul 2010, Sebastian Pop wrote: > > as we probably want to add memcpy or array sin/cos operations as well > > here. > > I can imagine the memcpy pattern, but could you please provide an > example for sin/cos patterns? Some math libraries (the one from AMD at least for instance) provide not only vectorized intrinsics for a fixed vector size (e.g. 4 float elements), but also for a generic arbitrarily sized array. For instance: void vrsa_expf(int n, float *src, float *dest); is equivalent to: for (i = 0; i < n; i++) dest[i] = expf (src[i]); Ciao, Michael.