问题
Does Visual Studio C++ 2008/2010 support _mm_malloc
officially? It is defined in malloc.h
but I can't find its description in the MSDN library.
回答1:
Doesn't answer your question directly, but I think you're suppose to use _aligned_malloc. If my understanding is correct, _mm_malloc
is for Intel compilers.
回答2:
_mm_malloc/_mm_free
supported in Visual Studio 2013 with using the <malloc.h>
header.
回答3:
See Equivalent C code for _mm_ type functions and, more distantly related, How to allocate aligned memory only using the standard library?
回答4:
Doesn't memalign() in <malloc.h>
solve this? The man-page says it's obsolete, but ...
来源:https://stackoverflow.com/questions/3306294/does-vc-support-mm-malloc