Changeset 6177
- Timestamp:
- Apr 7, 2007, 7:56:15 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ccl/compiler/optimizers.lisp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/compiler/optimizers.lisp
r5525 r6177 616 616 (setf (array-ctype-dimensions ctype) 617 617 '*)))) 618 (let* ((element-type (specifier-type (if element-type-p element-typet))))618 (let* ((element-type (specifier-type (if element-type-p (nx-unquote element-type) t)))) 619 619 (setf (array-ctype-element-type ctype) element-type) 620 620 (if (typep element-type 'unknown-ctype) … … 1526 1526 `(eql (lisptag ,arg) ,fixnum-tag))) 1527 1527 1528 (define-compiler-macro float (&whole w number &optional other) 1529 (declare (ignore number other)) 1530 w) 1528 1531 1529 1532 1530 (define-compiler-macro double-float-p (n) … … 1788 1786 call))) 1789 1787 1790 (define-compiler-macro float (&whole call number &optional other &environment env) 1788 (define-compiler-macro float (&whole call number &optional (other 0.0f0 other-p) &environment env) 1789 1791 1790 (cond ((and (typep other 'single-float) 1792 1791 (nx-form-typep number 'double-float env)) … … 1795 1794 (nx-form-typep number 'single-float env)) 1796 1795 `(the double-float (%single-to-double ,number))) 1796 ((or (typep other 'single-float) 1797 (null other-p)) 1798 `(the single-float (%short-float ,number))) 1799 ((typep other 'double-float) 1800 `(the double-float (%double-float ,number))) 1797 1801 (t call))) 1798 1802
Note:
See TracChangeset
for help on using the changeset viewer.
