]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/checksums/superfast/superfast.factor
factor: trim using lists
[factor.git] / basis / checksums / superfast / superfast.factor
index e9491a0fb4dda6d7acb25d479e658e0889e13119..d7f1c20153f99aaa15001914a5283e466e6a51a2 100644 (file)
@@ -2,8 +2,8 @@
 ! See http://factorcode.org/license.txt for BSD license.
 
 USING: accessors alien alien.c-types alien.data byte-arrays
-checksums combinators endian fry grouping kernel math
-math.bitwise math.ranges sequences sequences.private ;
+checksums endian grouping kernel math math.bitwise ranges
+sequences sequences.private ;
 
 IN: checksums.superfast
 
@@ -19,7 +19,7 @@ C: <superfast> superfast
     [ -11 shift ] [ + ] bi ; inline
 
 : main-loop ( seq hash -- seq hash' )
-    over byte-array? little-endian? and [
+    over byte-array? alien.data:little-endian? and [
         [ 0 over length 4 - 4 <range> ] dip
         [ pick <displaced-alien> int deref (main-loop) ] reduce
     ] [