]> gitweb.factorcode.org Git - factor.git/blobdiff - core/math/floats/floats.factor
use radix literals
[factor.git] / core / math / floats / floats.factor
index 49e5ec30ccb3ff8cb747ff5c326f380cc8a1ca6c..b441276a886631046fcb2952f45fdace1a8a5d99 100644 (file)
@@ -3,7 +3,7 @@
 USING: kernel math math.private math.order ;
 IN: math.floats.private
 
-: float-unordered? ( x y -- ? ) [ fp-nan? ] bi@ or ;
+: float-unordered? ( x y -- ? ) [ fp-nan? ] either? ;
 : float-min ( x y -- z ) [ float< ] most ; foldable
 : float-max ( x y -- z ) [ float> ] most ; foldable
 
@@ -39,7 +39,7 @@ M: float /i float/f >integer ; inline
 M: real abs dup 0 < [ neg ] when ; inline
 
 M: float fp-special?
-    double>bits -52 shift HEX: 7ff [ bitand ] keep = ; inline
+    double>bits -52 shift 0x7ff [ bitand ] keep = ; inline
 
 M: float fp-nan-payload
     double>bits 52 2^ 1 - bitand ; inline