[Lunar-commits] r17635 - in lunar/trunk/var/lib/lunar: functions menu

Auke Kok sofar at lunar-linux.org
Mon Dec 12 04:25:21 UTC 2005


Author: sofar
Date: 2005-12-12 04:25:18 +0000 (Mon, 12 Dec 2005)
New Revision: 17635

Modified:
   lunar/trunk/var/lib/lunar/functions/optimize.lunar
   lunar/trunk/var/lib/lunar/menu/optimize.menu
Log:
Adds sse3 and amd64 subarch optimizations, thanks to zbigniew.


Modified: lunar/trunk/var/lib/lunar/functions/optimize.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/optimize.lunar	2005-12-12 04:11:08 UTC (rev 17634)
+++ lunar/trunk/var/lib/lunar/functions/optimize.lunar	2005-12-12 04:25:18 UTC (rev 17635)
@@ -588,6 +588,11 @@
                   CXXFLAGS="$CXXFLAGS -msse2"
                fi
 	       ;;
+      SSE3)    if [[ $GCCVER == "3" ]];  then
+                  CFLAGS="$CFLAGS -msse3"
+                  CXXFLAGS="$CXXFLAGS -msse3"
+               fi
+	       ;;	       	       
       dnow)   if [[ $GCCVER == "3" ]];  then
                   CFLAGS="$CFLAGS -m3dnow"
                   CXXFLAGS="$CXXFLAGS -m3dnow"

Modified: lunar/trunk/var/lib/lunar/menu/optimize.menu
===================================================================
--- lunar/trunk/var/lib/lunar/menu/optimize.menu	2005-12-12 04:11:08 UTC (rev 17634)
+++ lunar/trunk/var/lib/lunar/menu/optimize.menu	2005-12-12 04:25:18 UTC (rev 17635)
@@ -73,6 +73,7 @@
          Athlon4_HELP="AMD Athlon 4 processors"
          AthlonXP_HELP="AMD Athlon XP processors"
          AthlonMP_HELP="AMD Athlon MP processors"
+	  Athlon64_HELP="AMD Athlon 64 processors"
          ;;
        Alpha)
          ev4_HELP="Alpha EV4 (21064)"
@@ -158,7 +159,7 @@
    xtra)
      # do NOT change the next line unless you too smart
      CPUINFO=$(echo "`grep flags /proc/cpuinfo` ")
-     for EXT in mmx sse sse2 3dnow altivec ; do
+     for EXT in mmx sse sse2 pni 3dnow altivec ; do
        if echo $CPUINFO | grep -q " $EXT " ; then
          FLAGS="$FLAGS $EXT"
        fi
@@ -168,6 +169,7 @@
      MMX_HELP="Multi-Media instruction code eXtensions"
      SSE_HELP="Streaming SIMD (Single Instruction, Multiple Data) Extensions"
      SSE2_HELP="Streaming SIMD (Single Instruction, Multiple Data) Extensions v2"
+     SSE3_HELP="Streaming SIMD (Single Instruction, Multiple Data) Extensions v3"
      dnow_HELP="3dnow"
      Altivec_HELP="Enables Altivec"
      unset CPUINFO EXT FLAGS
@@ -262,7 +264,8 @@
                    "AthlonTBird" "AthlonTBird"  $( [ "$CPU" == "AthlonTBird" ] && echo "on" || echo "off" ) "$AthlonTBird_HELP"
                    "Athlon4"     "Athlon4"      $( [ "$CPU" == "Athlon4" ] && echo "on" || echo "off" )     "$Athlon4_HELP"
                    "AthlonXP"    "AthlonXP"     $( [ "$CPU" == "AthlonXP" ] && echo "on" || echo "off" )    "$AthlonXP_HELP"
-                   "AthlonMP"    "AthlonMP"     $( [ "$CPU" == "AthlonMP" ] && echo "on" || echo "off" )    "$AthlonMP_HELP" )
+                   "AthlonMP"    "AthlonMP"     $( [ "$CPU" == "AthlonMP" ] && echo "on" || echo "off" )    "$AthlonMP_HELP"
+		    "Athlon64"    "Athlon64"     $( [ "$CPU" == "Athlon64" ] && echo "on" || echo "off" )    "$Athlon64_HELP" )
          ;;
 
        Alpha)
@@ -354,6 +357,9 @@
 	 if grep -qw sse2 /proc/cpuinfo ; then
            OPTIONS=( ${OPTIONS[@]} "SSE2"    "SSE2"    $( echo ${XTRA[@]} | grep -q "SSE2" && echo "on" || echo "off" )     "$SSE2_HELP" )
 	 fi
+	 if grep -qw pni /proc/cpuinfo ; then
+           OPTIONS=( ${OPTIONS[@]} "SSE3"    "SSE3"    $( echo ${XTRA[@]} | grep -q "SSE3" && echo "on" || echo "off" )     "$SSE3_HELP" )
+	 fi	 
 	 if grep -qw 3dnow /proc/cpuinfo ; then
            OPTIONS=( ${OPTIONS[@]} "dnow"    "3dnow"   $( echo ${XTRA[@]} | grep -q "dnow" && echo "on" || echo "off" )     "$dnow_HELP" )
 	 fi



More information about the Lunar-commits mailing list