From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20765 invoked by alias); 3 Apr 2013 08:15:54 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 20753 invoked by uid 89); 3 Apr 2013 08:15:53 -0000 X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_CP autolearn=ham version=3.3.1 Received: from mail-ie0-f180.google.com (HELO mail-ie0-f180.google.com) (209.85.223.180) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 03 Apr 2013 08:15:47 +0000 Received: by mail-ie0-f180.google.com with SMTP id a11so1357615iee.39 for ; Wed, 03 Apr 2013 01:15:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=aAVHDoqYh8QArCzAP2z2iPE6s26D0JAkkVVr9jwAZ0I=; b=ojILyYHHZnToV+quLnLxXhTELdOXvHqundHgXCbdVN7Z9VH42H+0aOACgKNxknIOfP U5aNVpQmYLruh+4KnjSlhJ0chfEIODJmLEYBrIdNC7PFvwX8eGqCBUro52BbhycMki+S rq1u7owRwp5vOJrLJFh7lN49dXoXy2z8SbZ7kfP9RbK040wYG1gnGJV61fiT2a577mmC l7wtHhGOK9TKWURTUtW2pHNZFKEi3YrZ6rZO86rk87qevs3T8nUVHLaU4sikrwlJYbJc sLEeyV+E1hD0XjcOzZKHa/NkgYUwAcbakPVMUJqiBZc82tLDVtqozsCE80WPTaZ8ALxD UZPA== MIME-Version: 1.0 X-Received: by 10.50.196.234 with SMTP id ip10mr455173igc.27.1364976946435; Wed, 03 Apr 2013 01:15:46 -0700 (PDT) Received: by 10.64.100.174 with HTTP; Wed, 3 Apr 2013 01:15:46 -0700 (PDT) In-Reply-To: References: Date: Wed, 03 Apr 2013 08:15:00 -0000 Message-ID: Subject: Re: [PATCH] ARM: NEON detected memcpy. From: Will Newton To: "Shih-Yuan Lee (FourDollars)" Cc: patches@eglibc.org, libc-ports@sourceware.org, rex.tsai@canonical.com, jesse.sung@canonical.com, yc.cheng@canonical.com, Shih-Yuan Lee Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmP/Uuyu46KNSxy1mGiqqA5NwjVbdm4PghGXJ8/aA37J0bROX7i/mRVcI6eULpA+NxiimKc X-SW-Source: 2013-04/txt/msg00004.txt.bz2 On 3 April 2013 08:58, Shih-Yuan Lee (FourDollars) wrote: > Hi, > > I am working on the NEON detected memcpy. > This is based on what Siarhei Siamashka did at 2009 [1]. > > The idea is to use HWCAP and check NEON bit. > If there is a NEON bit, using NEON optimized memcpy. > If not, using the original memcpy instead. > > If using NEON optimized memcpy, the performance of memcpy will be > raised up by about 50% [2]. > > How do you think about this idea? Any comment is welcome. Hi, I am working on a similar project within Linaro, which is to add the NEON/VFP capable memcpy from cortex-strings[1] to glibc. However I am looking at enabling it at runtime via indirect functions which makes it slightly more complex than just importing the cortex strings code, so I don't have any patches to show you just yet. [1] https://launchpad.net/cortex-strings