From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 128EF67B88 for ; Fri, 21 Jul 2006 08:39:12 +1000 (EST) Subject: Re: AltiVec in the kernel From: Daniel Ostrow To: "Brian D. Carlstrom" In-Reply-To: References: <20060719181047.GL5905@austin.ibm.com> <001301c6abf8$73d780e0$99dfdfdf@bakuhatsu.net> <20060720174255.GP5905@austin.ibm.com> <20060720190523.GA27775@pb15.lixom.net> Content-Type: text/plain Date: Thu, 20 Jul 2006 15:39:47 -0700 Message-Id: <1153435187.26811.9.camel@Kefka.anyarch.net> Mime-Version: 1.0 Cc: Olof Johansson , 'linuxppc-dev list' , 'Paul Mackerras' List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2006-07-20 at 14:56 -0700, Brian D. Carlstrom wrote: > At Thu, 20 Jul 2006 14:05:23 -0500, Olof Johansson wrote: > > On Thu, Jul 20, 2006 at 11:47:04AM -0700, Brian D. Carlstrom wrote: > > > A quick grep memcpy in the recent glibc sources on my linux/ppc box > > > seems to show no where near that level of optimization, but I admit > > > that I could have missed something. > > > > http://penguinppc.org/dev/glibc/glibc-powerpc-cpu-addon.html > > Very interesting. According to that page, the memcpy optimizations seem > to be using 64-bit operations and that 128-bit AltiVec operations are > still being solicited. > > I was encouraged to see the following: > > If you need to build generic distributions (supporting several > ) you can leverage the dl_procinfo support built into > glibc. This mechanism allows for multiple versions of the core > libraries (libc, libm, librt, libpthread, libpthread_db) to be > stored in hardware/platform specific subdirectories under /lib[64]. > > However, I'm guessing this addon is not something found in common > distributions for PowerPC like Debian, Fedora, Gentoo, Ubuntu, ... It has been part of Gentoo's glibc since 2.4 came out. --Dan