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
21c98b2a
Commit
21c98b2a
authored
32 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Changed %primitive numerator to %numerator. Same for denominator,
realpart, and imagpart.
parent
985e7f7e
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/srctran.lisp
+5
-24
5 additions, 24 deletions
compiler/srctran.lisp
with
5 additions
and
24 deletions
compiler/srctran.lisp
+
5
−
24
View file @
21c98b2a
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/srctran.lisp,v 1.3
8
1992/
08/05 00:27:15 ram
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/srctran.lisp,v 1.3
9
1992/
12/13 15:18:54 wlott
Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -213,25 +213,25 @@
(
def-source-transform
numerator
(
num
)
(
once-only
((
n-num
`
(
the
rational
,
num
)))
`
(
if
(
ratiop
,
n-num
)
(
%
primitive
numerator
,
n-num
)
(
%numerator
,
n-num
)
,
n-num
)))
;;;
(
def-source-transform
denominator
(
num
)
(
once-only
((
n-num
`
(
the
rational
,
num
)))
`
(
if
(
ratiop
,
n-num
)
(
%
primitive
denominator
,
n-num
)
(
%denominator
,
n-num
)
1
)))
;;;
(
def-source-transform
realpart
(
num
)
(
once-only
((
n-num
num
))
`
(
if
(
complexp
,
n-num
)
(
%
primitive
realpart
,
n-num
)
(
%realpart
,
n-num
)
,
n-num
)))
;;;
(
def-source-transform
imagpart
(
num
)
(
once-only
((
n-num
num
))
`
(
cond
((
complexp
,
n-num
)
(
%
primitive
imagpart
,
n-num
))
(
%imagpart
,
n-num
))
((
floatp
,
n-num
)
(
float
0
,
n-num
))
(
t
...
...
@@ -853,25 +853,6 @@
(
logior
(
logand
new
mask
)
(
logand
int
(
lognot
mask
)))))
;;;; Funny function stubs:
;;;
;;; These functions are the result of compiler transformations. We never
;;; actually compile a call to these functions, but we need to have a
;;; definition to allow constant folding.
;;;
#-
new-compiler
(
progn
(
defun
%negate
(
x
)
(
%primitive
negate
x
))
(
defun
%ldb
(
s
p
i
)
(
%primitive
ldb
s
p
i
))
(
defun
%dpb
(
n
s
p
i
)
(
%primitive
dpb
n
s
p
i
))
(
defun
%mask-field
(
s
p
i
)
(
%primitive
mask-field
s
p
i
))
(
defun
%deposit-field
(
n
s
p
i
)
(
%primitive
deposit-field
n
s
p
i
))
)
; #-new-compiler progn
;;; Miscellanous numeric transforms:
...
...
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