[cfe-commits] PATCH: Clean-room reimplementation of _mm_malloc

Chris Lattner clattner at apple.com
Wed Oct 6 10:42:07 PDT 2010


On Oct 6, 2010, at 4:39 AM, Sebastian Redl wrote:

> On 05.10.2010 19:01, Matt Beaumont-Gay wrote:
>> See attached. This removes a dependency on errno.h and improves
>> compatibility with GCC's implementation.
>> 
> Do we want an unconditional dependency on the existence of 
> posix_memalign? What about Win32 platforms?

I'm not familiar with windows, does it have  posix_memalign replacement?  If so, it's probably best to #ifdef _WIN32 in the header.  If not, it seems reasonable for the old implementation can come back #ifdef _WIN32.

-Chris






More information about the cfe-commits mailing list