multiple conversion bugs in xmmintrin.h

Timothy C Prince tprince@myrealbox.com
Thu May 1 21:32:00 GMT 2003



-----Original Message-----
From: Tanguy Fautr  <tfautre@pandora.be>
To: <bug-gcc@gnu.org>
Date: Thu, 1 May 2003 22:06:32 +0200
Subject: multiple conversion bugs in xmmintrin.h


PS: _mm_malloc() and _mm_free() doesn't seem to be implemented in the
version of GCC I have. Is it correct to use malloc() instead, assuming that
the returned address will always be aligned on 16 bytes?

No, but, unfortunately, that's a library issue.  On recent versions of glibc, you ought to get 8-byte alignment, but you need to fix it up to 16.  On Windows versions of gcc, you can't count on 8-byte alignment.  Those _mm_ prefixes normally just reflect wrappers on the standard malloc().  Maybe you could write and test your own, and persuade library implementors to add them.
Tim Prince



More information about the Gcc-bugs mailing list