Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl-copy
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
Richard M Kreuter
cmucl-copy
Commits
96c90caf
Commit
96c90caf
authored
7 years ago
by
Raymond Toy
Browse files
Options
Downloads
Patches
Plain Diff
Remove old stuff; conditionalize on :random-xoroshiro
parent
5ca98fb1
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
src/compiler/x86/arith.lisp
+1
-44
1 addition, 44 deletions
src/compiler/x86/arith.lisp
with
1 addition
and
44 deletions
src/compiler/x86/arith.lisp
+
1
−
44
View file @
96c90caf
...
...
@@ -1835,51 +1835,8 @@
(
give-up
)))))
(
in-package
"VM"
)
#+
nil
(
progn
(
defknown
xoroshiro-next
(
double-float
double-float
)
(
values
(
unsigned-byte
32
)
(
unsigned-byte
32
)
double-float
double-float
)
(
movable
))
(
define-vop
(
xoroshiro-next
)
(
:policy
:fast-safe
)
(
:translate
xoroshiro-next
)
(
:args
(
old-s1
:scs
(
double-reg
)
:to
(
:result
3
))
(
old-s0
:scs
(
double-reg
)
:to
(
:result
3
)))
(
:arg-types
double-float
double-float
)
(
:results
(
r1
:scs
(
unsigned-reg
))
(
r0
:scs
(
unsigned-reg
))
(
s1
:scs
(
double-reg
))
(
s0
:scs
(
double-reg
)))
(
:result-types
unsigned-num
unsigned-num
double-float
double-float
)
(
:temporary
(
:sc
double-reg
)
t0
)
(
:generator
10
(
inst
movapd
t0
old-s0
)
(
inst
paddq
t0
old-s1
)
; t0 = old-s0 + old-s1
(
inst
movd
r0
t0
)
; r0 = low 32-bits of t0
(
inst
psrlq
t0
32
)
(
inst
movd
r1
t0
)
; r1 = high 32-bits of t0
;; s1 ^= s0
(
inst
movapd
s1
old-s1
)
; s1 = old-s1
(
inst
xorpd
s1
old-s0
)
; s1 = old-s0 ^ old-s1
;; rotl(s0, 55) = s0 << 55 | (s0 >> 9)
(
inst
movapd
s0
old-s0
)
; s0 = old-s0
(
inst
movapd
t0
old-s0
)
; t0 = old-s0
(
inst
psllq
s0
55
)
; s0 = s0 << 55
(
inst
psrlq
t0
9
)
; t0 = s0 >> 9
(
inst
orpd
s0
t0
)
; s0 = rotl(s0,55) = s0 << 55 | s0 >> 9
(
inst
xorpd
s0
s1
)
; s0 = rotl(s0,55) ^ s1
(
inst
movapd
t0
s1
)
; t0 = s1
(
inst
psllq
t0
14
)
; t0 = s1 << 14
(
inst
xorpd
s0
t0
)
; s0 = rotl(s0,55) ^ s1 ^ (s1 << 14)
(
inst
movapd
t0
s1
)
; t0 = s1
(
inst
psllq
t0
36
)
; t0 = s1 << 36
(
inst
psrlq
s1
28
)
; s1 = s1 >> 28
(
inst
orpd
s1
t0
)
; s1 = rotl(new-s1, 36)
))
)
#+
random-xoroshiro
(
progn
(
defknown
xoroshiro-next
((
simple-array
double-float
(
2
)))
(
values
(
unsigned-byte
32
)
(
unsigned-byte
32
))
...
...
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