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
ca90da2a
Commit
ca90da2a
authored
33 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Added UPGRADED-COMPLEX-PART-TYPE.
parent
d2d29b91
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
code/numbers.lisp
+10
-3
10 additions, 3 deletions
code/numbers.lisp
with
10 additions
and
3 deletions
code/numbers.lisp
+
10
−
3
View file @
ca90da2a
...
...
@@ -7,11 +7,11 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.
19
199
1/11/14 09:32:11 wlott
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.
20
199
2/02/07 11:33:23 ram
Exp $"
)
;;;
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.
19
199
1/11/14 09:32:11 wlott
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.
20
199
2/02/07 11:33:23 ram
Exp $
;;;
;;; This file contains the definitions of most number functions.
;;;
...
...
@@ -30,7 +30,8 @@
boole-and
boole-ior
boole-xor
boole-eqv
boole-nand
boole-nor
boole-andc1
boole-andc2
boole-orc1
boole-orc2
lognot
logtest
logbitp
ash
integer-length
byte
byte-size
byte-position
ldb
ldb-test
mask-field
dpb
deposit-field
))
ldb
ldb-test
mask-field
dpb
deposit-field
upgraded-complex-part-type
))
(
in-package
"KERNEL"
)
...
...
@@ -246,6 +247,12 @@
;;;; Complexes:
(
defun
upgraded-complex-part-type
(
spec
)
"Returns the element type of the most specialized COMPLEX number type that
can hold parts of type Spec. This is currently always T."
(
declare
(
ignore
spec
))
t
)
(
defun
complex
(
realpart
&optional
(
imagpart
0
))
"Builds a complex number from the specified components."
(
number-dispatch
((
realpart
real
)
(
imagpart
real
))
...
...
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