]> gitweb.factorcode.org Git - factor.git/commitdiff
bit-arrays: rename clean-up to zero-end-bits
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 6 Jun 2015 04:09:57 +0000 (21:09 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 6 Jun 2015 04:09:57 +0000 (21:09 -0700)
basis/bit-arrays/bit-arrays.factor

index 1b4de65300687eac97b57579be63c21da236b786..5b9330e7ff7e0666f12fad9805d88857ae3fa45b 100644 (file)
@@ -28,7 +28,7 @@ TUPLE: bit-array
     [ [ length bits>cells ] keep ] dip swap underlying>>
     '[ [ _ _ ] dip 4 * set-alien-unsigned-4 ] each-integer ; inline
 
-: clean-up ( bit-array -- bit-array )
+: zero-end-bits ( bit-array -- bit-array )
     ! Zero bits after the end.
     dup underlying>> [ ] [
         [
@@ -83,7 +83,7 @@ M: bit-array equal?
 
 M: bit-array resize
     dupd [ bits>bytes ] [ underlying>> ] bi*
-    resize-byte-array bit-array boa clean-up ; inline
+    resize-byte-array bit-array boa zero-end-bits ; inline
 
 M: bit-array byte-length length bits>bytes ; inline