Enabled SSE2 intrinsics
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402626
This commit is contained in:
parent
94de1268d8
commit
4e6d65504c
2 changed files with 28 additions and 2 deletions
|
@ -47,7 +47,7 @@
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
AdditionalIncludeDirectories="..\..\include"
|
AdditionalIncludeDirectories="..\..\include"
|
||||||
PreprocessorDefinitions="_DEBUG;_WINDOWS;_WIN32_WINNT=0x0400;__MMX__;__3dNOW__;__SSE__"
|
PreprocessorDefinitions="_DEBUG;_WINDOWS;_WIN32_WINNT=0x0400;__MMX__;__3dNOW__;__SSE__;__SSE2__"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
BufferSecurityCheck="false"
|
BufferSecurityCheck="false"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
|
@ -145,7 +145,7 @@
|
||||||
InlineFunctionExpansion="1"
|
InlineFunctionExpansion="1"
|
||||||
EnableIntrinsicFunctions="false"
|
EnableIntrinsicFunctions="false"
|
||||||
AdditionalIncludeDirectories="..\..\include"
|
AdditionalIncludeDirectories="..\..\include"
|
||||||
PreprocessorDefinitions="NDEBUG;_WINDOWS;_WIN32_WINNT=0x0400;__MMX__;__3dNOW__;__SSE__"
|
PreprocessorDefinitions="NDEBUG;_WINDOWS;_WIN32_WINNT=0x0400;__MMX__;__3dNOW__;__SSE__;__SSE2__"
|
||||||
StringPooling="true"
|
StringPooling="true"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
BufferSecurityCheck="false"
|
BufferSecurityCheck="false"
|
||||||
|
|
26
configure.in
26
configure.in
|
@ -356,6 +356,32 @@ AC_HELP_STRING([--enable-sse], [use SSE assembly routines [[default=yes]]]),
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(sse2,
|
||||||
|
AC_HELP_STRING([--enable-sse2], [use SSE2 assembly routines [[default=yes]]]),
|
||||||
|
, enable_sse2=yes)
|
||||||
|
if test x$enable_sse2 = xyes; then
|
||||||
|
save_CFLAGS="$CFLAGS"
|
||||||
|
have_gcc_sse2=no
|
||||||
|
AC_MSG_CHECKING(for GCC -msse2 option)
|
||||||
|
sse2_CFLAGS="-msse2"
|
||||||
|
CFLAGS="$save_CFLAGS $sse2_CFLAGS"
|
||||||
|
|
||||||
|
AC_TRY_COMPILE([
|
||||||
|
#include <emmintrin.h>
|
||||||
|
#ifndef __SSE2__
|
||||||
|
#error Assembler CPP flag not enabled
|
||||||
|
#endif
|
||||||
|
],[
|
||||||
|
],[
|
||||||
|
have_gcc_sse2=yes
|
||||||
|
])
|
||||||
|
AC_MSG_RESULT($have_gcc_sse2)
|
||||||
|
|
||||||
|
if test x$have_gcc_sse2 = xyes; then
|
||||||
|
EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(altivec,
|
AC_ARG_ENABLE(altivec,
|
||||||
AC_HELP_STRING([--enable-altivec], [use Altivec assembly routines [[default=yes]]]),
|
AC_HELP_STRING([--enable-altivec], [use Altivec assembly routines [[default=yes]]]),
|
||||||
, enable_altivec=yes)
|
, enable_altivec=yes)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue