Skip to content
Snippets Groups Projects
Commit 3929486e authored by rtoy's avatar rtoy
Browse files

It seems we need kernel::%sqrt to be defined for sparc. It's used,

sometimes, during constant folding in the compiler.  (What else is
missing?)
parent b00064f8
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/code/irrat.lisp,v 1.43 2005/10/20 12:32:08 rtoy Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/irrat.lisp,v 1.44 2006/05/03 19:39:56 rtoy Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -154,6 +154,17 @@ ...@@ -154,6 +154,17 @@
(%log1p x)) (%log1p x))
) ; progn ) ; progn
;; As above for x86. It also seems to be needed to handle
;; constant-folding in the compiler.
#+sparc
(progn
(defun %sqrt (x)
(declare (double-float x)
(values double-float))
(%sqrt x))
)
;;;; Power functions. ;;;; Power functions.
......
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