This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: A new meta intrinsic header file for x86 intrinsics


On Mon, Nov 03, 2008 at 02:17:40PM -0800, H.J. Lu wrote:
> My question is if we should put AVX intrinsics directly in immintrin.h or in
> a separate file. If we put AVX and future intrinsics directly in immintrin.h,
> immintrin.h may become very large and harder to maintain. Another
> choice is to put AVX intrinsics in a separate file, saying avxintrin.h:
> 
> #ifndef _IMMINTRIN_H_INCLUDED
> # error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
> #else
> AVX intrinsics
> #endif /* _IMMINTRIN_H_INCLUDED */

I think a separate header with such an error is better.
Note, you can just #endif right after the error and put AVX intrinsics in
the file, no need to have everything inside of the #else.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]