From 3929486e2f5eb2972cd3f49e9f7f2cbdf3020e6b Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Wed, 3 May 2006 19:39:56 +0000 Subject: [PATCH] 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?) --- code/irrat.lisp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/code/irrat.lisp b/code/irrat.lisp index ac500bc1f..4c5658c1d 100644 --- a/code/irrat.lisp +++ b/code/irrat.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (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 @@ (%log1p x)) ) ; 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. -- GitLab