Don't include SSE/MMX intrinsics headers if they are not available

This commit is contained in:
gbeauche 2004-02-20 17:33:28 +00:00
parent ab5adf0bb3
commit b802615c36
2 changed files with 5 additions and 5 deletions

View File

@ -183,9 +183,9 @@ AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(mach/vm_map.h mach/mach_init.h sys/mman.h)
AC_CHECK_HEADERS(sys/time.h sys/times.h)
AC_CHECK_HEADERS(unistd.h fcntl.h byteswap.h)
AC_CHECK_HEADER(mmintrin.h, [have_mmintrin_h=yes])
AC_CHECK_HEADER(xmmintrin.h, [have_xmmintrin_h=yes])
AC_CHECK_HEADER(emmintrin.h, [have_emmintrin_h=yes])
AC_CHECK_HEADERS(mmintrin.h, [have_mmintrin_h=yes])
AC_CHECK_HEADERS(xmmintrin.h, [have_xmmintrin_h=yes])
AC_CHECK_HEADERS(emmintrin.h, [have_emmintrin_h=yes])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_BIGENDIAN

View File

@ -1489,7 +1489,7 @@ void op_record_cr6_VD(void)
* SSE optimizations
**/
#if defined(__SSE__)
#if defined(__SSE__) && defined(HAVE_XMMINTRIN_H)
#include <xmmintrin.h>
#undef VD
#define VD *((__m128 *)reg_VD)
@ -1575,7 +1575,7 @@ void op_sse_vxor(void)
* MMX optimizations
**/
#if defined(__MMX__)
#if defined(__MMX__) && defined(HAVE_MMINTRIN_H)
#include <mmintrin.h>
#undef VD
#define VD ((__m64 *)reg_VD)