Follow clang lead and include mm_malloc.h only in hosted configurations.
This makes the use of intrinsics easier in kernel environment, according to the submitter. Requested by: jmg
This commit is contained in:
parent
274b8658fc
commit
31e8efde08
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242182
@ -39,7 +39,9 @@
|
||||
#include <mmintrin.h>
|
||||
|
||||
/* Get _mm_malloc () and _mm_free (). */
|
||||
#if __STDC_HOSTED__
|
||||
#include <mm_malloc.h>
|
||||
#endif
|
||||
|
||||
/* The Intel API is flexible enough that we must allow aliasing with other
|
||||
vector types, and their scalar components. */
|
||||
|
Loading…
Reference in New Issue
Block a user