]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/checksums/xxhash/xxhash.factor
factor: trim using lists
[factor.git] / basis / checksums / xxhash / xxhash.factor
index ea6869e4821c1c1c79bfb940b36e1825a5231ba1..23f32738fe0b545534d4f0b9025593dae607eae0 100644 (file)
@@ -1,9 +1,9 @@
 ! Copyright (C) 2014 John Benediktsson.
 ! See http://factorcode.org/license.txt for BSD license.
 
-USING: accessors alien alien.c-types alien.data byte-arrays
-checksums combinators generalizations grouping io.binary kernel
-locals math math.bitwise math.ranges sequences ;
+USING: accessors alien.c-types alien.data byte-arrays
+checksums combinators endian generalizations grouping kernel
+math math.bitwise sequences ;
 
 IN: checksums.xxhash
 
@@ -21,7 +21,7 @@ C: <xxhash> xxhash
 
 :: native-mapper ( from to bytes c-type -- seq )
     from to bytes <slice>
-    bytes byte-array? little-endian? and
+    bytes byte-array? alien.data:little-endian? and
     [ c-type cast-array ]
     [ c-type heap-size <groups> [ le> ] map ] if ; inline