[RFC] Vector extentions for vprintf/vscanf
Richard Henderson
rth@twiddle.net
Tue Jan 20 00:19:00 GMT 2004
On Mon, Jan 19, 2004 at 04:44:08PM -0600, Steve Munroe wrote:
> 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).
Are you going to hard-code the width of the vector? That's not
friendly for x86, where there are two sizes.
r~
More information about the Libc-hacker
mailing list