Conditionally include x86intrin.h if we are building for x86 or x86_64.
Conditionalise definition of inline assembly routines which use x86 or x86_64
inline assembly. This is needed as clang can target Windows on ARM where these
definitions may be included into user code.
Details
Details
- Reviewers
rnk
Diff Detail
Diff Detail
Event Timeline
Comment Actions
IMO intrin.h should avoid including x86intrin.h on non-x86 platforms, rather than making ia32intrin.h do nothing on non-x86. Does that work for you?
Comment Actions
I think that is perfectly reasonable. I did do that, but then backtracked away from it. Would you be against these changes to ia32intrin.h in addition to the inclusion guard?