Skip to content
Snippets Groups Projects
Commit a8a5fbbf authored by dtc's avatar dtc
Browse files

Further patch to relax complex float transforms to accept a real argument.

parent eddbf822
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain. ;;; Carnegie Mellon University, and has been placed in the public domain.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/float-tran.lisp,v 1.71 1998/08/22 11:23:21 dtc Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/float-tran.lisp,v 1.72 1998/08/22 11:30:44 dtc Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -1196,9 +1196,9 @@ ...@@ -1196,9 +1196,9 @@
(deftransform = ((w z) ((complex ,type) (complex ,type)) *) (deftransform = ((w z) ((complex ,type) (complex ,type)) *)
'(and (= (realpart w) (realpart z)) '(and (= (realpart w) (realpart z))
(= (imagpart w) (imagpart z)))) (= (imagpart w) (imagpart z))))
(deftransform = ((w z) ((complex ,type) ,type) *) (deftransform = ((w z) ((complex ,type) real) *)
'(and (= (realpart w) z) (zerop (imagpart w)))) '(and (= (realpart w) z) (zerop (imagpart w))))
(deftransform = ((w z) (,type (complex ,type)) *) (deftransform = ((w z) (real (complex ,type)) *)
'(and (= (realpart z) w) (zerop (imagpart z)))) '(and (= (realpart z) w) (zerop (imagpart z))))
))) )))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment