From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19604 invoked by alias); 19 Jan 2004 22:46:17 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 19580 invoked from network); 19 Jan 2004 22:46:17 -0000 Received: from unknown (HELO e33.co.us.ibm.com) (32.97.110.131) by sources.redhat.com with SMTP; 19 Jan 2004 22:46:17 -0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e33.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i0JMj4Fn239550; Mon, 19 Jan 2004 17:45:14 -0500 Received: from us.ibm.com (d03av02.boulder.ibm.com [9.17.193.82]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i0JMiWw9130374; Mon, 19 Jan 2004 15:44:43 -0700 Message-ID: <400C5DB8.7010400@us.ibm.com> Date: Mon, 19 Jan 2004 22:46:00 -0000 From: Steve Munroe Reply-To: sjmunroe@vnet.ibm.com Organization: IBM LTC User-Agent: Mozilla/5.0 (X11; U; Linux ppc64; en-US; rv:1.4) Gecko/20030922 MIME-Version: 1.0 To: libc-hacker@sources.redhat.com, Tom Gall , Andreas Jaeger CC: Segher Boessenkoof , Hartmut Penner Subject: [RFC] Vector extentions for vprintf/vscanf Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-01/txt/msg00074.txt.bz2 A number of platforms support Vector (SIMD) extentions that support with types and builtins in gcc. This includes i386 MMX, 3Dnow!, SSE, SSE2, PowerPC 32 (and now PowerPC64) Altivec/VMX. One useful extention to glibc would be adding vector formating to printf/scanf. This would add the type modifier prefix v to the type modifiers hh, h, l. For example to print a vector of 16 signed bytes "%vhhd", 8 signed shorts "%vhd", 4 signed ints "%vd", or 4 floats "%vhf". (note the form "%vf" is reserved for a vector of 2 doubles but most current Vector SIMD implimentations don't support double float). We would be happy to provide the supporting patches and documentation if there is interrest.