在 2020/12/7 上午5:30, Martin Storsjö 写道:
> 
> My thought here was that previously by including malloc.h, you got a working 
> _mm_malloc and _mm_free
> (defined by pointing at other functions), so there could be code relying on 
> getting these functions
> visible by just relying on malloc.h. (The fact that MSVC doesn't have it 
> shouldn't really matter
> afaik, as our headers don't support being built with MSVC in general afaik?)
> 

I have an impression that some part of our CRT could be built with MSVC because 
there are some `#if`
checks in CRT code. Probably they are just legacies.


>> The Intel Intrinsics Guide [1] says those functions are of SSE 
> technology and
>> suggests `#include <xmmintrin.h>` instead.
> 
> I guess that'd work, but that ends up declaring a whole lot more than what 
> the header did earlier.
> 
> // Martin

As long as both GCC and Clang have <mm_malloc.h>, these patches look good.



-- 
Best regards,
LH_Mouse

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to