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:
Alexander Kabaev 2012-10-27 17:39:36 +00:00
parent 274b8658fc
commit 31e8efde08
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242182

View File

@ -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. */