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
0de1a79b
Commit
0de1a79b
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Rewrote sxhash-simple-substring so that is it much faster (and works).
parent
56189b98
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/sparc/array.lisp
+22
-81
22 additions, 81 deletions
assembly/sparc/array.lisp
with
22 additions
and
81 deletions
assembly/sparc/array.lisp
+
22
−
81
View file @
0de1a79b
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/sparc/array.lisp,v 1.
1
1990/11/
22 11:50
:4
0
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/sparc/array.lisp,v 1.
2
1990/11/
30 16:45
:4
4
wlott Exp $
;;;
;;; This file contains the support routines for arrays and vectors.
;;;
...
...
@@ -54,18 +54,16 @@
((
:arg
string
descriptor-reg
a0-offset
)
(
:res
result
any-reg
a0-offset
)
(
:temp
lip
interior-reg
lip-offset
)
(
:temp
length
any-reg
a1-offset
)
(
:temp
accum
non-descriptor-reg
nl0-offset
)
(
:temp
data
non-descriptor-reg
nl1-offset
)
(
:temp
by
te
non-descriptor-reg
nl2-offset
)
(
:temp
retaddr
non-descriptor-reg
nl3-offset
))
(
:temp
te
mp
non-descriptor-reg
nl2-offset
)
(
:temp
offset
non-descriptor-reg
nl3-offset
))
(
declare
(
ignore
result
lip
accum
data
byte
retaddr
))
(
declare
(
ignore
result
accum
data
temp
offset
))
(
loadw
length
string
vm:vector-length-slot
vm:other-pointer-type
)
(
inst
b
sxhash-simple-substring-entry
)
(
inst
nop
))
(
loadw
length
string
vm:vector-length-slot
vm:other-pointer-type
))
(
define-assembly-routine
(
sxhash-simple-substring
...
...
@@ -77,95 +75,38 @@
(
:arg
length
any-reg
a1-offset
)
(
:res
result
any-reg
a0-offset
)
(
:temp
lip
interior-reg
lip-offset
)
(
:temp
accum
non-descriptor-reg
nl0-offset
)
(
:temp
data
non-descriptor-reg
nl1-offset
)
(
:temp
by
te
non-descriptor-reg
nl2-offset
)
(
:temp
retaddr
non-descriptor-reg
nl3-offset
))
(
:temp
te
mp
non-descriptor-reg
nl2-offset
)
(
:temp
offset
non-descriptor-reg
nl3-offset
))
(
emit-label
sxhash-simple-substring-entry
)
;; Save the return address.
(
inst
sub
retaddr
lip
code-tn
)
(
inst
add
lip
string
(
-
(
*
vm:vector-data-offset
vm:word-bytes
)
vm:other-pointer-type
))
(
inst
li
offset
(
-
(
*
vector-data-offset
word-bytes
)
other-pointer-type
))
(
inst
b
test
)
(
move
accum
zero-tn
)
LOOP
(
inst
and
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
and
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
and
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
add
lip
lip
4
)
(
inst
xor
accum
data
)
(
inst
sll
temp
accum
27
)
(
inst
srl
accum
5
)
(
inst
or
accum
temp
)
(
inst
add
offset
4
)
TEST
(
inst
subcc
length
(
fixnum
4
))
(
inst
b
:ge
loop
)
(
inst
ld
data
lip
0
)
(
inst
addcc
length
(
fixnum
3
))
(
inst
b
:eq
one-more
)
(
inst
subcc
length
(
fixnum
1
))
(
inst
b
:eq
two-more
)
(
inst
subcc
length
(
fixnum
1
))
(
inst
b
:ne
done
)
(
inst
nop
)
(
inst
srl
byte
data
16
)
(
inst
and
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
and
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
and
byte
data
#xff
)
(
inst
xor
accum
accum
byte
)
(
inst
sll
byte
accum
5
)
(
inst
srl
accum
accum
27
)
(
inst
or
accum
accum
byte
)
(
inst
ld
data
string
offset
)
(
inst
addcc
length
(
fixnum
4
))
(
inst
b
:eq
done
)
(
inst
neg
length
)
(
inst
sll
length
1
)
(
inst
srl
data
length
)
(
inst
xor
accum
data
)
DONE
(
inst
sll
result
accum
5
)
(
inst
srl
result
result
3
)
;; Restore the return address.
(
inst
add
lip
retaddr
code-tn
))
(
inst
srl
result
result
3
))
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