Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cl-base64
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nyxt
cl-base64
Commits
7a201bb1
Commit
7a201bb1
authored
22 years ago
by
Kevin M. Rosenberg
Browse files
Options
Downloads
Patches
Plain Diff
r3727: *** empty log message ***
parent
4b686492
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src.lisp
+28
-33
28 additions, 33 deletions
src.lisp
with
28 additions
and
33 deletions
src.lisp
+
28
−
33
View file @
7a201bb1
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
;;;; Copyright 2002-2003 Kevin M. Rosenberg
;;;; Copyright 2002-2003 Kevin M. Rosenberg
;;;; Permission to use with BSD-style license included in the COPYING file
;;;; Permission to use with BSD-style license included in the COPYING file
;;;;
;;;;
;;;; $Id: src.lisp,v 1.
4
2003/01/04 08:
27:41
kevin Exp $
;;;; $Id: src.lisp,v 1.
5
2003/01/04 08:
33:13
kevin Exp $
(
defpackage
#:base64
(
defpackage
#:base64
(
:use
#:cl
)
(
:use
#:cl
)
...
@@ -156,43 +156,38 @@ with a #\Newline."
...
@@ -156,43 +156,38 @@ with a #\Newline."
(
logand
#x3f
svalue
))))
(
logand
#x3f
svalue
))))
(
output-char
pad
))))
(
output-char
pad
))))
(
do
((
igroup
0
(
1+
igroup
))
(
do
((
igroup
0
(
1+
igroup
))
(
isource
0
(
+
isource
3
))
(
isource
0
(
+
isource
3
)))
(
svalue
0
))
((
=
igroup
complete-group-count
)
((
=
igroup
complete-group-count
)
(
case
remainder
(
case
remainder
(
2
(
2
(
setq
svalue
(
output-group
(
the
fixnum
(
the
fixnum
(
+
(
+
(
the
fixnum
(
the
fixnum
(
ash
(
char-code
(
the
character
(
ash
(
char-code
(
the
character
(
char
string
isource
)))
16
))
(
char
string
isource
)))
16
))
(
the
fixnum
(
the
fixnum
(
ash
(
char-code
(
the
character
(
ash
(
char-code
(
the
character
(
char
string
(
1+
isource
))))
8
))))
)
(
char
string
(
1+
isource
))))
8
))))
(
output-group
svalue
3
))
3
))
(
1
(
1
(
setq
svalue
(
output-group
(
the
fixnum
(
the
fixnum
(
char-code
(
the
character
(
char-code
(
the
character
(
char
string
isource
))))
(
char
string
isource
)))))
2
)))
(
output-group
svalue
2
)))
result
)
result
)
(
declare
(
fixnum
igroup
isource
svalue
))
(
declare
(
fixnum
igroup
isource
))
(
setq
svalue
(
output-group
(
the
fixnum
(
the
fixnum
(
+
(
+
(
the
fixnum
(
the
fixnum
(
ash
(
char-code
(
the
character
(
ash
(
char-code
(
the
character
(
char
string
isource
)))
16
))
(
char
string
isource
)))
16
))
(
the
fixnum
(
the
fixnum
(
ash
(
char-code
(
the
character
(
ash
(
char-code
(
the
character
(
char
string
(
1+
isource
))))
8
))
(
char
string
(
1+
isource
))))
8
))
(
the
fixnum
(
the
fixnum
(
char-code
(
the
character
(
char
string
(
+
2
isource
)))))))
(
char-code
(
the
character
4
))))))
(
char
string
(
+
2
isource
))))))))
(
output-group
svalue
4
))))))
(
defun
integer-to-base64
(
input
&key
(
uri
nil
)
(
columns
0
)
(
stream
nil
))
(
defun
integer-to-base64
(
input
&key
(
uri
nil
)
(
columns
0
)
(
stream
nil
))
(
if
stream
(
if
stream
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment