mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-26 08:32:20 +00:00
Add <*mmintrin.h> detection for generic SSE2/SSE/MMX optimizations
This commit is contained in:
parent
cdab3d6975
commit
ab5adf0bb3
@ -183,6 +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])
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_BIGENDIAN
|
||||
@ -725,6 +728,15 @@ if [[ "x$EMULATED_PPC" = "xyes" ]]; then
|
||||
else
|
||||
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -malign-functions=0"
|
||||
fi
|
||||
if [[ "x$have_mmintrin_h" = "xyes" ]]; then
|
||||
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -mmmx"
|
||||
fi
|
||||
if [[ "x$have_xmmintrin_h" = "xyes" ]]; then
|
||||
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -msse"
|
||||
fi
|
||||
if [[ "x$have_emmintrin_h" = "xyes" ]]; then
|
||||
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -msse2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -finline-limit=10000"
|
||||
|
Loading…
Reference in New Issue
Block a user