public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [RFC] Vector extentions for vprintf/vscanf
@ 2004-01-19 22:46 Steve Munroe
  2004-01-20  0:19 ` Richard Henderson
  2004-01-20  3:38 ` Ulrich Drepper
  0 siblings, 2 replies; 3+ messages in thread
From: Steve Munroe @ 2004-01-19 22:46 UTC (permalink / raw)
  To: libc-hacker, Tom Gall, Andreas Jaeger; +Cc: Segher Boessenkoof, Hartmut Penner

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-20  3:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-19 22:46 [RFC] Vector extentions for vprintf/vscanf Steve Munroe
2004-01-20  0:19 ` Richard Henderson
2004-01-20  3:38 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).