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
aaad5fdf
Commit
aaad5fdf
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the logand derive-type optimizer to never try to expand
'(unsigned-byte 0). Use '(integer 0 0) instead.
parent
4d3441ff
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/srctran.lisp
+20
-9
20 additions, 9 deletions
compiler/srctran.lisp
with
20 additions
and
9 deletions
compiler/srctran.lisp
+
20
−
9
View file @
aaad5fdf
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/srctran.lisp,v 1.2
1
1990/12/0
1
1
4
:36:
14
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/srctran.lisp,v 1.2
2
1990/12/0
4
1
9
:36:
55
wlott Exp $
;;;
;;; This file contains macro-like source transformations which convert
;;; uses of certain functions into the canonical form desired within the
...
...
@@ -492,18 +492,29 @@
;; X must be positive.
(
if
(
not
y-neg
)
;; The must both be positive.
(
specifier-type
`
(
unsigned-byte
,
(
if
(
and
x-len
y-len
)
(
min
x-len
y-len
)
'*
)))
(
cond
((
or
(
null
x-len
)
(
null
y-len
))
(
specifier-type
'unsigned-byte
))
((
or
(
zerop
x-len
)
(
zerop
y-len
))
(
specifier-type
'
(
integer
0
0
)))
(
t
(
specifier-type
`
(
unsigned-byte
,
(
min
x-len
y-len
)))))
;; X is positive, but Y might be negative.
(
specifier-type
`
(
unsigned-byte
,
(
or
x-len
'*
))))
(
cond
((
null
x-len
)
(
specifier-type
'unsigned-byte
))
((
zerop
x-len
)
(
specifier-type
'
(
integer
0
0
)))
(
t
(
specifier-type
`
(
unsigned-byte
,
x-len
)))))
;; X might be negative.
(
if
(
not
y-neg
)
;; Y must be positive.
(
specifier-type
`
(
unsigned-byte
,
(
or
y-len
'*
)))
(
cond
((
null
y-len
)
(
specifier-type
'unsigned-byte
))
((
zerop
y-len
)
(
specifier-type
'
(
integer
0
0
)))
(
t
(
specifier-type
`
(
unsigned-byte
,
y-len
))))
;; Either might be negative.
(
if
(
and
x-len
y-len
)
;; The result is bounded.
...
...
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