From af6f32542598fb8d99ad73e8dd6e2ff523874b5e Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Mon, 28 Feb 2011 17:14:45 +0000 Subject: [PATCH] Need to define %sqrt for x86/sse2 so the compiler can constant-fold SQRT. --- code/irrat.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/irrat.lisp b/code/irrat.lisp index af7381c36..588270640 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.63 2010/04/20 17:57:44 rtoy Rel $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/irrat.lisp,v 1.64 2011/02/28 17:14:45 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -179,7 +179,7 @@ ;; As above for x86. It also seems to be needed to handle ;; constant-folding in the compiler. -#+sparc +#+(or sparc (and x86 sse2)) (progn (defun %sqrt (x) (declare (double-float x) -- GitLab