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
ba0c38fb
Commit
ba0c38fb
authored
20 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Support for modular multiplication.
parent
c6a708b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/ppc/arith.lisp
+44
-2
44 additions, 2 deletions
compiler/ppc/arith.lisp
with
44 additions
and
2 deletions
compiler/ppc/arith.lisp
+
44
−
2
View file @
ba0c38fb
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ppc/arith.lisp,v 1.
6
2004/0
7/30 16:2
5:
4
7 rtoy Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ppc/arith.lisp,v 1.
7
2004/0
8/02 03:1
5:
1
7 rtoy Exp $
;;;
;;; This file contains the VM definition arithmetic VOPs for the MIPS.
;;;
...
...
@@ -272,6 +272,48 @@
fixnum-additive-overflow-trap
))
(
emit-label
no-overflow
))))
(
define-vop
(
fast-*/fixnum=>fixnum
fast-fixnum-binop
)
(
:temporary
(
:scs
(
non-descriptor-reg
))
temp
)
(
:translate
*
)
(
:generator
2
(
inst
srawi
temp
y
2
)
(
inst
mullw
r
x
temp
)))
(
define-vop
(
fast-*-c/fixnum=>fixnum
fast-fixnum-binop-c
)
(
:translate
*
)
(
:arg-types
tagged-num
(
:constant
(
and
(
signed-byte
16
)
(
not
(
integer
0
0
)))))
(
:generator
1
(
inst
mulli
r
x
y
)))
(
define-vop
(
fast-*-bigc/fixnum=>fixnum
fast-fixnum-binop-c
)
(
:translate
*
)
(
:arg-types
tagged-num
(
:constant
(
and
fixnum
(
not
(
signed-byte
16
)))))
(
:temporary
(
:scs
(
non-descriptor-reg
))
temp
)
(
:generator
1
(
inst
lr
temp
y
)
(
inst
mullw
r
x
temp
)))
(
define-vop
(
fast-*/signed=>signed
fast-signed-binop
)
(
:translate
*
)
(
:generator
4
(
inst
mullw
r
x
y
)))
(
define-vop
(
fast-*-c/signed=>signed
fast-signed-binop-c
)
(
:translate
*
)
(
:generator
3
(
inst
mulli
r
x
y
)))
(
define-vop
(
fast-*/unsigned=>unsigned
fast-unsigned-binop
)
(
:translate
*
)
(
:generator
4
(
inst
mullw
r
x
y
)))
(
define-vop
(
fast-*-c/unsigned=>unsigned
fast-unsigned-binop-c
)
(
:translate
*
)
(
:generator
3
(
inst
mulli
r
x
y
)))
;;; Shifting
...
...
@@ -1011,7 +1053,7 @@
(
define-modular-backend
logandc2
)
(
define-modular-backend
logorc1
)
(
define-modular-backend
logorc2
)
;;
(define-modular-backend * t)
(
define-modular-backend
*
t
)
(
def-source-transform
lognand
(
x
y
)
`
(
lognot
(
logand
,
x
,
y
)))
...
...
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