base64: inline the { 3 2 1 0 } [ -6 * ].

db4
John Benediktsson 2014-04-29 15:59:48 -07:00
parent 568888c277
commit 3e7e47b9c0
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ SYMBOL: column
: encode3 ( seq -- ) : encode3 ( seq -- )
column output-stream get '[ column output-stream get '[
swap be> { 3 2 1 0 } [ swap be> { -18 -12 -6 0 } [
-6 * shift 0x3f bitand ch>base64 _ write1-lines shift 0x3f bitand ch>base64 _ write1-lines
] with each ] with each
] change ; inline ] change ; inline