]> gitweb.factorcode.org Git - factor.git/commitdiff
cpu.x86.32: check for SSE2 on bootstrap since Factor now requires it
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Thu, 13 May 2010 22:25:46 +0000 (18:25 -0400)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Thu, 13 May 2010 22:25:46 +0000 (18:25 -0400)
basis/cpu/x86/64/64.factor
basis/cpu/x86/x86.factor

index 0a4396188883abef2f2742e867044012559e6b58..68bade8781868f9a775edd77dc1941dde54ff99b 100644 (file)
@@ -237,5 +237,3 @@ USE: vocabs.loader
     { [ os unix? ] [ "cpu.x86.64.unix" require ] }
     { [ os winnt? ] [ "cpu.x86.64.winnt" require ] }
 } cond
-
-check-sse
index 78e613179525c6b3957bdec0fd20a4cfca1d4d8f..0ee427510cf55781f7ec8b9d35a074d34252d687 100644 (file)
@@ -1502,26 +1502,15 @@ M: x86 immediate-bitwise? ( n -- ? )
 enable-min/max
 enable-log2
 
-:: install-sse2-check ( -- )
-    [
-        sse-version 20 < [
-            "This image was built to use SSE2 but your CPU does not support it." print
-            "You will need to bootstrap Factor again." print
-            flush
-            1 exit
-        ] when
-    ] "cpu.x86" add-startup-hook ;
-
-: enable-sse2 ( version -- )
-    20 >= [
-        enable-float-intrinsics
-        enable-float-functions
-        enable-float-min/max
-        enable-fsqrt
-        install-sse2-check
-    ] when ;
+enable-float-intrinsics
+enable-float-functions
+enable-float-min/max
+enable-fsqrt
 
 : check-sse ( -- )
     [ { (sse-version) } compile ] with-optimizer
-    "Checking for multimedia extensions: " write sse-version
-    [ sse-string write " detected" print ] [ enable-sse2 ] bi ;
+    sse-version 20 < [
+        "Factor requires SSE2, which your CPU does not support." print
+        flush
+        1 exit
+    ] when ;