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
854bd830
Commit
854bd830
authored
28 years ago
by
dtc
Browse files
Options
Downloads
Patches
Plain Diff
Use xor to zero a result.
parent
182d9696
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/x86/array.lisp
+2
-4
2 additions, 4 deletions
assembly/x86/array.lisp
with
2 additions
and
4 deletions
assembly/x86/array.lisp
+
2
−
4
View file @
854bd830
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/x86/array.lisp,v 1.
1
1997/0
1/21 00:30:28 ram
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/x86/array.lisp,v 1.
2
1997/0
2/10 17:03:44 dtc
Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
:disp
(
-
(
*
vector-data-offset
word-bytes
)
:disp
(
-
(
*
vector-data-offset
word-bytes
)
other-pointer-type
)))
other-pointer-type
)))
;; Initialize the result.
;; Initialize the result.
(
inst
mov
result
0
)
(
inst
xor
result
result
)
;; Get the count. If it's zero, blow out.
;; Get the count. If it's zero, blow out.
(
inst
mov
ecx
length
)
(
inst
mov
ecx
length
)
(
inst
jecxz
done
)
(
inst
jecxz
done
)
...
@@ -107,7 +107,6 @@
...
@@ -107,7 +107,6 @@
LOOP
LOOP
;; Merge each successive word with the result.
;; Merge each successive word with the result.
;; ZZZZZ undef inst???
(
inst
lods
eax
)
; load 32-bits into eax and (+4 esi)
(
inst
lods
eax
)
; load 32-bits into eax and (+4 esi)
(
inst
rol
result
5
)
(
inst
rol
result
5
)
...
@@ -124,7 +123,6 @@
...
@@ -124,7 +123,6 @@
(
inst
shl
ecx
1
)
(
inst
shl
ecx
1
)
;; Grab the last word.
;; Grab the last word.
;; ZZZZZ undef isnt?
(
inst
lods
eax
)
(
inst
lods
eax
)
;; Convert the count into a mask. The count is multiplied by 8, so we just
;; Convert the count into a mask. The count is multiplied by 8, so we just
...
...
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