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
56808b64
Commit
56808b64
authored
20 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Use -1 instead of 0 as the uninitialized hash indicator.
parent
70ac7f13
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
code/symbol.lisp
+3
-3
3 additions, 3 deletions
code/symbol.lisp
compiler/generic/objdef.lisp
+2
-2
2 additions, 2 deletions
compiler/generic/objdef.lisp
compiler/sparc/cell.lisp
+2
-2
2 additions, 2 deletions
compiler/sparc/cell.lisp
with
7 additions
and
7 deletions
code/symbol.lisp
+
3
−
3
View file @
56808b64
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/symbol.lisp,v 1.3
5
2004/05/1
7 17:22:30
rtoy Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/symbol.lisp,v 1.3
6
2004/05/1
8 01:14:04
rtoy Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -98,9 +98,9 @@
...
@@ -98,9 +98,9 @@
"Make and return a new symbol with the STRING as its print name."
"Make and return a new symbol with the STRING as its print name."
#-
(
or
gengc
x86
sparc
)
(
make-symbol
string
)
#-
(
or
gengc
x86
sparc
)
(
make-symbol
string
)
#+
gengc
(
%make-symbol
(
random
most-positive-fixnum
)
string
)
#+
gengc
(
%make-symbol
(
random
most-positive-fixnum
)
string
)
;; Initialize the symbol-hash to
0
to make this fast. It will get
;; Initialize the symbol-hash to
-1
to make this fast. It will get
;; computed correctly later on.
;; computed correctly later on.
#+
(
or
sparc
x86
)
(
%make-symbol
0
string
))
#+
(
or
sparc
x86
)
(
%make-symbol
-1
string
))
#+
(
or
gengc
x86
sparc
)
#+
(
or
gengc
x86
sparc
)
(
defun
symbol-hash
(
symbol
)
(
defun
symbol-hash
(
symbol
)
...
...
This diff is collapsed.
Click to expand it.
compiler/generic/objdef.lisp
+
2
−
2
View file @
56808b64
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/objdef.lisp,v 1.5
3
2004/05/1
7 17:22:30
rtoy Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/objdef.lisp,v 1.5
4
2004/05/1
8 01:14:04
rtoy Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -471,7 +471,7 @@
...
@@ -471,7 +471,7 @@
(
flushable
movable
))
(
flushable
movable
))
#+
(
or
gengc
sparc
x86
)
#+
(
or
gengc
sparc
x86
)
(
defknown
symbol-hash
(
symbol
)
index
(
defknown
symbol-hash
(
symbol
)
fixnum
(
flushable
movable
))
(
flushable
movable
))
#+
(
or
gencgc
sparc
x86
)
#+
(
or
gencgc
sparc
x86
)
...
...
This diff is collapsed.
Click to expand it.
compiler/sparc/cell.lisp
+
2
−
2
View file @
56808b64
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/cell.lisp,v 1.2
5
2004/05/1
7 17:22:30
rtoy
Exp
$"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/cell.lisp,v 1.2
6
2004/05/1
8 01:14:05
rtoy
Rel
$"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
(
:translate
symbol-hash
)
(
:translate
symbol-hash
)
(
:args
(
symbol
:scs
(
descriptor-reg
null
)))
(
:args
(
symbol
:scs
(
descriptor-reg
null
)))
(
:results
(
res
:scs
(
any-reg
)))
(
:results
(
res
:scs
(
any-reg
)))
(
:result-types
positive-fix
num
)
(
:result-types
tagged-
num
)
(
:generator
2
(
:generator
2
;; the symbol-hash slot of NIL holds NIL because it is also the cdr
;; the symbol-hash slot of NIL holds NIL because it is also the cdr
;; slot, so we have to strip off the two low bits to make sure it is
;; slot, so we have to strip off the two low bits to make sure it is
...
...
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