Does VC++ support _mm_malloc?

六月ゝ 毕业季﹏ 提交于 2019-12-23 09:06:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!