From 956f0444aeef85ff3b4b975fefe5c0ab9758e1f4 Mon Sep 17 00:00:00 2001 From: zuxy Date: Fri, 15 Jan 2010 09:10:23 +0000 Subject: Set HAVE_FAST_CMOV to 0 for NetBurst based x86-64 processors, e.g. Prescott. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30307 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index ce0d61e974..d674487340 100755 --- a/configure +++ b/configure @@ -2024,7 +2024,6 @@ EOF else cpuopt=-mcpu fi - test $_fast_cmov = "auto" && _fast_cmov=yes if test "$_runtime_cpudetection" = no ; then case "$pvendor" in AuthenticAMD) @@ -2036,6 +2035,7 @@ EOF # 64-bit prescotts exist, but as far as GCC is concerned they # have the same capabilities as a nocona. proc=nocona + test $_fast_cmov = "auto" && _fast_cmov=no ;; esac ;; @@ -2089,6 +2089,7 @@ EOF fi _optimizing="" + test $_fast_cmov = "auto" && _fast_cmov=yes echores "$proc" ;; -- cgit v1.2.3 From 02531411b36cb152169a6113ed06cdb292418f7c Mon Sep 17 00:00:00 2001 From: zuxy Date: Fri, 15 Jan 2010 09:31:15 +0000 Subject: Add -fno-common to avoid misalignment for global var under win32 like what has been done for ffmpeg. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30308 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 1 + 1 file changed, 1 insertion(+) (limited to 'configure') diff --git a/configure b/configure index d674487340..6e9f17d98c 100755 --- a/configure +++ b/configure @@ -1488,6 +1488,7 @@ fi if win32 ; then _exesuf=".exe" + extra_cflags="$extra_cflags -fno-common" # -lwinmm is always needed for osdep/timer-win2.c extra_ldflags="$extra_ldflags -lwinmm" _pe_executable=yes -- cgit v1.2.3 From 0fd68f17cadab2e0f9e390ffc09b15a8982f3e37 Mon Sep 17 00:00:00 2001 From: zuxy Date: Fri, 15 Jan 2010 09:33:38 +0000 Subject: The undocumented x86-64 is a better fallback for core2 than nocona. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30309 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 6e9f17d98c..ebde6ef908 100755 --- a/configure +++ b/configure @@ -2064,6 +2064,9 @@ EOF fi # --- Intel processors --- if test "$proc" = "core2"; then + cc_check -march=$proc $cpuopt=$proc || proc=x86-64 + fi + if test "$proc" = "x86-64"; then cc_check -march=$proc $cpuopt=$proc || proc=nocona fi if test "$proc" = "nocona"; then -- cgit v1.2.3 From 7231e76268c37c5c5fe33cee4668f99e4f5669d5 Mon Sep 17 00:00:00 2001 From: zuxy Date: Fri, 15 Jan 2010 09:47:45 +0000 Subject: Set _optimizing for x86-64. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30310 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index ebde6ef908..57466c0ce5 100755 --- a/configure +++ b/configure @@ -2092,7 +2092,7 @@ EOF cc_check $_march $_mcpu || _march="" fi - _optimizing="" + _optimizing="$proc" test $_fast_cmov = "auto" && _fast_cmov=yes echores "$proc" -- cgit v1.2.3 From b18ddf98075560b87f7914db7187fd97934625ab Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 16 Jan 2010 15:20:26 +0000 Subject: HAVE_INLINE_ASM for FFmpeg should be one since we only support compilers that can do inline asm. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30321 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 57466c0ce5..90a68f726f 100755 --- a/configure +++ b/configure @@ -9115,7 +9115,7 @@ $def_yasm #define HAVE_ATTRIBUTE_PACKED 1 #define HAVE_GETHRTIME 0 -#define HAVE_INLINE_ASM 0 +#define HAVE_INLINE_ASM 1 #define HAVE_LDBRX 0 #define HAVE_POLL_H 1 #define HAVE_PPC4XX 0 -- cgit v1.2.3 From 5f5462c0ec32348a0b370b1f9c11bd7d10b52de6 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 16 Jan 2010 15:21:36 +0000 Subject: Add HAVE_FAST_CLZ define and set it to 0 to keep the status quo for now. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30322 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 1 + 1 file changed, 1 insertion(+) (limited to 'configure') diff --git a/configure b/configure index 90a68f726f..ea66abe902 100755 --- a/configure +++ b/configure @@ -9114,6 +9114,7 @@ $def_yasm #endif #define HAVE_ATTRIBUTE_PACKED 1 +#define HAVE_FAST_CLZ 0 #define HAVE_GETHRTIME 0 #define HAVE_INLINE_ASM 1 #define HAVE_LDBRX 0 -- cgit v1.2.3