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
f2dd1c31
Commit
f2dd1c31
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Changed ``%primitive sxhash-simple-string'' to ``%sxhash-simple-string''
parent
09aa63ab
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
code/package.lisp
+4
-8
4 additions, 8 deletions
code/package.lisp
with
4 additions
and
8 deletions
code/package.lisp
+
4
−
8
View file @
f2dd1c31
...
...
@@ -208,9 +208,7 @@
(
let*
((
vec
(
package-hashtable-table
table
))
(
hash
(
package-hashtable-hash
table
))
(
len
(
length
vec
))
(
sxhash
(
truly-the
index
(
%primitive
sxhash-simple-string
(
symbol-name
symbol
))))
(
sxhash
(
%sxhash-simple-string
(
symbol-name
symbol
)))
(
h2
(
the
fixnum
(
1+
(
the
fixnum
(
rem
sxhash
(
the
fixnum
(
-
len
2
))))))))
(
declare
(
simple-vector
vec
)
...
...
@@ -289,8 +287,7 @@
(
defun
nuke-symbol
(
table
string
)
(
declare
(
simple-string
string
))
(
let*
((
length
(
length
string
))
(
hash
(
truly-the
index
(
%primitive
sxhash-simple-string
string
)))
(
hash
(
%sxhash-simple-string
string
))
(
ehash
(
entry-hash
length
hash
)))
(
declare
(
fixnum
length
hash
))
(
with-symbol
(
index
symbol
table
string
length
hash
ehash
)
...
...
@@ -586,8 +583,7 @@
(
defun
find-symbol*
(
string
length
package
)
(
declare
(
simple-string
string
)
(
fixnum
length
))
(
let*
((
hash
(
truly-the
index
(
%primitive
sxhash-simple-substring
string
length
)))
(
let*
((
hash
(
%sxhash-simple-substring
string
length
))
(
ehash
(
entry-hash
length
hash
)))
(
declare
(
fixnum
hash
ehash
))
(
with-symbol
(
found
symbol
(
package-internal-symbols
package
)
...
...
@@ -617,7 +613,7 @@
(
defun
find-external-symbol
(
string
package
)
(
declare
(
simple-string
string
))
(
let*
((
length
(
length
string
))
(
hash
(
truly-the
index
(
%primitive
sxhash-simple-string
string
))
)
(
hash
(
%
sxhash-simple-string
string
))
(
ehash
(
entry-hash
length
hash
)))
(
declare
(
fixnum
length
hash
))
(
with-symbol
(
found
symbol
(
package-external-symbols
package
)
...
...
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