Commit 252fcf4b authored by Loren Merritt's avatar Loren Merritt

compile x86 with fpmath=sse by default

parent efa85578
......@@ -239,6 +239,9 @@ case $host_cpu in
if [[ "$asm" == yes && "$CFLAGS" != *-march* ]]; then
CFLAGS="$CFLAGS -march=i686"
fi
if [[ "$asm" == yes && "$CFLAGS" != *-mfpmath* ]]; then
CFLAGS="$CFLAGS -mfpmath=sse -msse"
fi
if [ "$SYS" = MACOSX ]; then
ASFLAGS="$ASFLAGS -f macho -DPREFIX"
elif [ "$SYS" = MINGW ]; then
......
......@@ -338,9 +338,9 @@ fail:
static int x264_validate_parameters( x264_t *h )
{
#ifdef HAVE_MMX
if( !(x264_cpu_detect() & X264_CPU_MMXEXT) )
if( !(x264_cpu_detect() & X264_CPU_SSE) )
{
x264_log( h, X264_LOG_ERROR, "your cpu does not support MMXEXT, but x264 was compiled with asm support\n");
x264_log( h, X264_LOG_ERROR, "your cpu does not support SSE1, but x264 was compiled with asm support\n");
x264_log( h, X264_LOG_ERROR, "to run x264, recompile without asm support (configure --disable-asm)\n");
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment