]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/cpu/x86/sse/sse.factor
use radix literals
[factor.git] / basis / cpu / x86 / sse / sse.factor
index 63332145ab2294dc35547583b6611d7ab6c6e828..facc8fe276d269525a40a1b8f4f224323be68bd1 100644 (file)
@@ -476,15 +476,15 @@ M: x86 %compare-vector-ccs
         { vcc-notall [ dst mask CMP dst temp \ CMOVNE (%boolean) ] }
     } case ;
 
-: %move-vector-mask* ( dst src rep -- mask )
+: (%move-vector-mask) ( dst src rep -- mask )
     {
-        { double-2-rep [ MOVMSKPS HEX: f ] }
-        { float-4-rep  [ MOVMSKPS HEX: f ] }
-        [ drop PMOVMSKB HEX: ffff ]
+        { double-2-rep [ MOVMSKPS 0xf ] }
+        { float-4-rep  [ MOVMSKPS 0xf ] }
+        [ drop PMOVMSKB 0xffff ]
     } case ;
 
 M: x86 %move-vector-mask ( dst src rep -- )
-    %move-vector-mask* drop ;
+    (%move-vector-mask) drop ;
 
 M: x86 %move-vector-mask-reps
     {
@@ -493,7 +493,7 @@ M: x86 %move-vector-mask-reps
     } available-reps ;
 
 M:: x86 %test-vector ( dst src temp rep vcc -- )
-    dst src rep %move-vector-mask* :> mask
+    dst src rep (%move-vector-mask) :> mask
     dst temp mask vcc %test-vector-mask ;
 
 :: %test-vector-mask-branch ( label temp mask vcc -- )
@@ -505,7 +505,7 @@ M:: x86 %test-vector ( dst src temp rep vcc -- )
     } case ;
 
 M:: x86 %test-vector-branch ( label src temp rep vcc -- )
-    temp src rep %move-vector-mask* :> mask
+    temp src rep (%move-vector-mask) :> mask
     label temp mask vcc %test-vector-mask-branch ;
 
 M: x86 %test-vector-reps
@@ -708,8 +708,8 @@ M: x86 %avg-vector-reps
 M: x86 %dot-vector
     [ two-operand ] keep
     {
-        { float-4-rep [ HEX: ff DPPS ] }
-        { double-2-rep [ HEX: ff DPPD ] }
+        { float-4-rep [ 0xff DPPS ] }
+        { double-2-rep [ 0xff DPPD ] }
     } case ;
 
 M: x86 %dot-vector-reps