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

Chris Lattner clattner at apple.com
Wed Oct 6 15:06:44 PDT 2010


On Oct 6, 2010, at 1:10 PM, Michael Spencer wrote:

> On Wed, Oct 6, 2010 at 1:42 PM, Chris Lattner <clattner at apple.com> wrote:
>> 
>> 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
> 
> http://msdn.microsoft.com/en-us/library/8z34s9c6.aspx

Ok, Matt can you add this as a windows-specific ifdef?

-Chris



More information about the cfe-commits mailing list