RFC: A new meta intrinsic header file for x86 intrinsics
H.J. Lu
hjl.tools@gmail.com
Fri Apr 4 20:18:00 GMT 2008
On Fri, Apr 04, 2008 at 11:35:00AM -0700, Chris Lattner wrote:
>>> I prefer <x86intrin.h>, as these are presumably usable in x86-64 mode.
>>>
>>> One random request: would it be possible to keep mm_malloc.h out of the
>>> umbrella header? Inclusion of mm_malloc.h make use of SSE difficult in
>>> kernel contexts, as mm_malloc.h pulls in stdlib.h and errno.h.
>>>
>>
>> The idea is one header file to make all intrinsics available, including
>> _mm_malloc () and _mm_free (). Unless we exclude those 2, I
>> don't see that we have a choice.
>
> How about something like:
>
> #ifndef __DISABLE_MM_MALLOC_H
> #include <mm_malloc.h>
> #endif
>
> in x86intrin.h?
It works for me.
H.J.
More information about the Gcc
mailing list