summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornickols_k <nickols_k@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-22 07:45:35 +0000
committernickols_k <nickols_k@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-05-22 07:45:35 +0000
commite77204726661ed148d5f5c1889bdf5f361a0b51b (patch)
treeea042af6a7a1b727b7c4ee5b7ccfe1b47c0d61c7
parentd2a3dbc094065d483dca3a0a17ccf35932ae93d2 (diff)
downloadmpv-e77204726661ed148d5f5c1889bdf5f361a0b51b.tar.bz2
mpv-e77204726661ed148d5f5c1889bdf5f361a0b51b.tar.xz
x86 assembler optimization
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@850 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure34
1 files changed, 28 insertions, 6 deletions
diff --git a/configure b/configure
index a3c84e6ac1..adf35d2e53 100755
--- a/configure
+++ b/configure
@@ -6,6 +6,9 @@
#
# Changes in reversed order:
#
+# 2001/05/22 by Nick Kurshev
+# - added definition of CPU clone
+#
# 2001/04/16 by LGB
# - added libcss stuffs
#
@@ -293,15 +296,18 @@ if [ -e /dev/mga_vid ]; then
fi
proc=pentium
+iproc=586
case "$pvendor" in
AuthenticAMD)
case "$pfamily" in
3)
proc=i386
+ iproc=386
;;
4)
proc=i486
+ iproc=486
;;
5)
if [ $pmodel -ge 6 ]; then # LGB: models are: K5/SSA5 K5 K5 K5 ? ? K6 K6 K6-2 K6-3
@@ -309,12 +315,15 @@ case "$pvendor" in
else
proc=k5
fi
+ iproc=586
;;
6|7) # LGB: Though it seems Athlon CPUs returns with "6"
proc=k7
+ iproc=686
;;
*)
proc=pentium
+ iproc=586
;;
esac
;;
@@ -322,18 +331,23 @@ case "$pvendor" in
case "$pfamily" in
3)
proc=i386
+ iproc=386
;;
4)
proc=i486
+ iproc=486
;;
5)
proc=pentium
+ iproc=586
;;
6)
proc=i686
+ iproc=686
;;
*)
proc=pentium
+ iproc=586
;;
esac
;;
@@ -341,17 +355,21 @@ case "$pvendor" in
case "$pfamily" in
3)
proc=i386
+ iproc=386
;;
4)
proc=i486
+ iproc=486
;;
*)
proc=pentium
+ iproc=586
;;
esac
;;
*)
proc=pentium
+ iproc=586
;;
esac
@@ -1091,12 +1109,16 @@ $_gui
#define ARCH_X86
-/////////////////////////////////////////////////////////////////////////////
-//
-// NOTE: Instead of modifying these here, use the --enable/--disable options
-// of the ./configure script! See ./configure --help for details.
-//
-/////////////////////////////////////////////////////////////////////////////
+/* Define this to any prefered value from 386 up to infinity with step 100 */
+#define __CPU__ $iproc
+
+/*----------------------------------------------------------------------------
+**
+** NOTE: Instead of modifying these definitions here, use the
+** --enable/--disable options of the ./configure script!
+** See ./configure --help for details.
+**
+*---------------------------------------------------------------------------*/
/* termcap flag for getch2.c */
$_termcap