]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/base64/base64.factor
base64: inline the { 3 2 1 0 } [ -6 * ].
[factor.git] / basis / base64 / base64.factor
index 7ca29c0119c39a47fdc2e7d39a768670569383d1..0f25a812be83c33422da8d4ee7acb11192ce752a 100644 (file)
@@ -50,8 +50,8 @@ SYMBOL: column
 
 : encode3 ( seq -- )
     column output-stream get '[
-        swap be> { 3 2 1 0 } [
-            -6 * shift 0x3f bitand ch>base64 _ write1-lines
+        swap be> { -18 -12 -6 0 } [
+            shift 0x3f bitand ch>base64 _ write1-lines
         ] with each
     ] change ; inline