Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
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
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
Carl Shapiro
cmucl
Commits
9e26145f
Commit
9e26145f
authored
32 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Added some declares to get rid of some efficiency notes.
parent
562c6e27
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/bit-bash.lisp
+7
-4
7 additions, 4 deletions
code/bit-bash.lisp
with
7 additions
and
4 deletions
code/bit-bash.lisp
+
7
−
4
View file @
9e26145f
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/bit-bash.lisp,v 1.1
5
1992/0
2/21 23:56:04
wlott Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/bit-bash.lisp,v 1.1
6
1992/0
7/31 17:50:18
wlott Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -123,7 +123,8 @@
(
defun
fix-sap-and-offset
(
sap
offset
)
"Align the SAP to a word boundry, and update the offset accordingly."
(
declare
(
type
system-area-pointer
sap
)
(
type
index
offset
))
(
type
index
offset
)
(
values
system-area-pointer
index
))
(
let
((
address
(
sap-int
sap
)))
(
values
(
int-sap
(
32bit-logical-andc2
address
3
))
(
+
(
*
(
logand
address
3
)
byte-bits
)
offset
))))
...
...
@@ -134,7 +135,7 @@
(
declare
(
type
system-area-pointer
sap
)
(
type
index
offset
)
(
values
(
unsigned-byte
32
))
(
optimize
(
speed
3
)
(
safety
0
)))
(
optimize
(
speed
3
)
(
safety
0
)
(
inhibit-warnings
3
)
))
(
sap-ref-32
sap
(
the
index
(
ash
offset
2
))))
;;;
(
defun
%set-word-sap-ref
(
sap
offset
value
)
...
...
@@ -142,7 +143,7 @@
(
type
index
offset
)
(
type
(
unsigned-byte
32
)
value
)
(
values
(
unsigned-byte
32
))
(
optimize
(
speed
3
)
(
safety
0
)))
(
optimize
(
speed
3
)
(
safety
0
)
(
inhibit-warnings
3
)
))
(
setf
(
sap-ref-32
sap
(
the
index
(
ash
offset
2
)))
value
))
;;;
(
defsetf
word-sap-ref
%set-word-sap-ref
)
...
...
@@ -489,8 +490,10 @@
(
declare
(
optimize
(
speed
3
)
(
safety
0
)))
(
multiple-value-bind
(
src
src-offset
)
(
fix-sap-and-offset
src
src-offset
)
(
declare
(
type
system-area-pointer
src
))
(
multiple-value-bind
(
dst
dst-offset
)
(
fix-sap-and-offset
dst
dst-offset
)
(
declare
(
type
system-area-pointer
dst
))
(
do-unary-bit-bash
src
src-offset
dst
dst-offset
length
#'
word-sap-ref
#'
%set-word-sap-ref
#'
word-sap-ref
)))))
...
...
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