changeset 849:0d4f64301c21

x86 assembler optimization
author nickols_k
date Tue, 22 May 2001 07:45:35 +0000
parents 738dc5a2bb39
children 2cc743142e79
files configure
diffstat 1 files changed, 28 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon May 21 13:04:34 2001 +0000
+++ b/configure	Tue May 22 07:45:35 2001 +0000
@@ -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 @@
 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 @@
       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 "$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 "$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 @@
 
 #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