This is the mail archive of the
libc-hacker@sources.redhat.com
mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at
the archives of this list, but subscription and posting are not open.
[RFC] Vector extentions for vprintf/vscanf
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: libc-hacker at sources dot redhat dot com, Tom Gall <tom_gall at vnet dot ibm dot com>, Andreas Jaeger <aj at suse dot de>
- Cc: Segher Boessenkoof <segher at kernel dot crashing dot org>, Hartmut Penner <hpenner at de dot ibm dot com>
- Date: Mon, 19 Jan 2004 16:44:08 -0600
- Subject: [RFC] Vector extentions for vprintf/vscanf
- Organization: IBM LTC
- Reply-to: sjmunroe at vnet dot ibm dot com
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.