在 2020/12/4 下午3:44, Martin Storsjö 写道:
> Instead just remove the _mm_malloc redefinition and include the
> compiler's mm_malloc.h header. This makes sure that regardless of
> header include order, calls to _aligned_malloc and _mm_malloc will
> always end up to the same function, avoiding risks of mismatches
> between *_malloc and *_free.

Is it a good idea to `#include <mm_malloc.h>` directly? AFAICT it's a 
non-standard header and MSVC
does not have it. The Intel Intrinsics Guide [1] says those functions are of 
SSE technology and
suggests `#include <xmmintrin.h>` instead.


[1] 
https://software.intel.com/sites/landingpage/IntrinsicsGuide/#!=undefined&text=_mm_malloc&techs=SSE


-- 
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