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
65b11712
Commit
65b11712
authored
35 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Wrote sxhash-simple-string and sxhash-simple-substring.
parent
db78a2a9
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
assembly/mips/array.lisp
+181
-1
181 additions, 1 deletion
assembly/mips/array.lisp
with
181 additions
and
1 deletion
assembly/mips/array.lisp
+
181
−
1
View file @
65b11712
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/mips/array.lisp,v 1.
3
1990/03/2
2 12:01:12
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/mips/array.lisp,v 1.
4
1990/03/2
9 21:29:45
wlott Exp $
;;;
;;; This file contains the support routines for arrays and vectors.
;;;
...
...
@@ -106,3 +106,183 @@
(
maybe-invoke-gc
vector
words
)
(
move
result
vector
))
;;;; Hash primitives
(
define-assembly-routine
(
sxhash-simple-string
(
:arg
string
)
(
:res
result
)
(
:temp
lip
:sc
interior-reg
:type
interior
)
(
:temp
length
:sc
any-reg
:type
fixnum
)
(
:temp
accum
:sc
non-descriptor-reg
:type
random
)
(
:temp
data
:sc
non-descriptor-reg
:type
random
)
(
:temp
byte
:sc
non-descriptor-reg
:type
random
))
(
loadw
length
string
vm:vector-length-slot
vm:other-pointer-type
)
(
inst
addiu
lip
string
(
-
(
*
vm:vector-data-offset
vm:word-bytes
)
vm:other-pointer-type
))
(
b
test
)
(
move
accum
zero-tn
)
loop
(
inst
andi
byte
data
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
(
inst
srl
byte
data
8
)
(
inst
andi
byte
byte
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
(
inst
srl
byte
data
16
)
(
inst
andi
byte
byte
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
(
inst
srl
byte
data
24
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
(
inst
addiu
lip
lip
4
)
test
(
inst
addiu
length
length
(
fixnum
-4
))
(
inst
bgez
length
loop
)
(
inst
lw
data
lip
0
)
(
inst
addiu
length
length
(
fixnum
3
))
(
inst
beq
length
zero-tn
one-more
)
(
inst
addiu
length
length
(
fixnum
-1
))
(
inst
beq
length
zero-tn
two-more
)
(
inst
addiu
length
length
(
fixnum
-1
))
(
inst
bne
length
zero-tn
done
)
(
nop
)
(
inst
srl
byte
data
16
)
(
inst
andi
byte
byte
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
two-more
(
inst
srl
byte
data
8
)
(
inst
andi
byte
byte
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
one-more
(
inst
andi
byte
data
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
done
(
inst
sll
result
accum
2
))
(
define-assembly-routine
(
sxhash-simple-substring
(
:arg
string
)
(
:arg
length
)
(
:res
result
)
(
:temp
lip
:sc
interior-reg
:type
interior
)
(
:temp
accum
:sc
non-descriptor-reg
:type
random
)
(
:temp
data
:sc
non-descriptor-reg
:type
random
)
(
:temp
byte
:sc
non-descriptor-reg
:type
random
))
(
loadw
length
string
vm:vector-length-slot
vm:other-pointer-type
)
(
inst
addiu
lip
string
(
-
(
*
vm:vector-data-offset
vm:word-bytes
)
vm:other-pointer-type
))
(
b
test
)
(
move
accum
zero-tn
)
loop
(
inst
andi
byte
data
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
(
inst
srl
byte
data
8
)
(
inst
andi
byte
byte
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
(
inst
srl
byte
data
16
)
(
inst
andi
byte
byte
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
(
inst
srl
byte
data
24
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
(
inst
addiu
lip
lip
4
)
test
(
inst
addiu
length
length
(
fixnum
-4
))
(
inst
bgez
length
loop
)
(
inst
lw
data
lip
0
)
(
inst
addiu
length
length
(
fixnum
3
))
(
inst
beq
length
zero-tn
one-more
)
(
inst
addiu
length
length
(
fixnum
-1
))
(
inst
beq
length
zero-tn
two-more
)
(
inst
addiu
length
length
(
fixnum
-1
))
(
inst
bne
length
zero-tn
done
)
(
nop
)
(
inst
srl
byte
data
16
)
(
inst
andi
byte
byte
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
two-more
(
inst
srl
byte
data
8
)
(
inst
andi
byte
byte
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
one-more
(
inst
andi
byte
data
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
done
(
inst
sll
result
accum
2
))
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