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
92d282e3
Commit
92d282e3
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Fixed %bignum-floor to leave the argument tns intact.
parent
9603ce3d
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
compiler/mips/arith.lisp
+21
-19
21 additions, 19 deletions
compiler/mips/arith.lisp
with
21 additions
and
19 deletions
compiler/mips/arith.lisp
+
21
−
19
View file @
92d282e3
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/arith.lisp,v 1.3
5
1990/1
0
/0
2
1
8:08:29
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/arith.lisp,v 1.3
6
1990/1
1
/0
1
1
7:14:52
wlott Exp $
;;;
;;; This file contains the VM definition arithmetic VOPs for the MIPS.
;;;
...
...
@@ -766,31 +766,33 @@
(
:translate
bignum::%floor
)
(
:policy
:fast-safe
)
(
:args
(
a
:scs
(
unsigned-reg
)
:target
rem
)
(
b
:scs
(
unsigned-reg
))
(
c
:scs
(
unsigned-reg
)))
(
b
:scs
(
unsigned-reg
)
:target
rem-low
)
(
c
:scs
(
unsigned-reg
)
:to
(
:eval
1
)
))
(
:arg-types
unsigned-num
unsigned-num
unsigned-num
)
(
:temporary
(
:scs
(
unsigned-reg
))
temp
result
)
(
:results
(
quo
:scs
(
unsigned-reg
))
(
rem
:scs
(
unsigned-reg
)))
(
:temporary
(
:scs
(
unsigned-reg
)
:from
(
:argument
1
))
rem-low
)
(
:temporary
(
:scs
(
unsigned-reg
)
:from
(
:eval
0
))
temp
)
(
:results
(
quo
:scs
(
unsigned-reg
)
:from
(
:eval
0
))
(
rem
:scs
(
unsigned-reg
)
:from
(
:eval
0
)))
(
:result-types
unsigned-num
unsigned-num
)
(
:generator
230
(
:generator
325
; number of inst assuming targeting works.
(
move
rem
a
)
(
move
rem-low
b
)
(
flet
((
maybe-subtract
(
&optional
(
guess
temp
))
(
inst
subu
temp
guess
1
)
(
inst
and
temp
c
)
(
inst
subu
a
temp
)))
(
inst
sltu
result
a
c
)
(
maybe-subtract
result
)
(
inst
subu
rem
temp
)))
(
inst
sltu
quo
rem
c
)
(
maybe-subtract
quo
)
(
dotimes
(
i
32
)
(
inst
sll
a
1
)
(
inst
srl
temp
b
31
)
(
inst
or
a
temp
)
(
inst
sll
b
1
)
(
inst
sltu
temp
a
c
)
(
inst
sll
result
1
)
(
inst
or
result
temp
)
(
inst
sll
rem
1
)
(
inst
srl
temp
rem-low
31
)
(
inst
or
rem
temp
)
(
inst
sll
rem-low
1
)
(
inst
sltu
temp
rem
c
)
(
inst
sll
quo
1
)
(
inst
or
quo
temp
)
(
maybe-subtract
)))
(
move
rem
a
)
(
inst
nor
quo
result
zero-tn
)))
(
inst
nor
quo
zero-tn
)))
(
define-vop
(
signify-digit
)
(
:translate
bignum::%fixnum-digit-with-correct-sign
)
...
...
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