From 220985cef4c09acc5d530314d38a4c9908b0b902 Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Fri, 23 May 2008 18:15:30 +0000
Subject: [PATCH] Add functions for fused-multiply-add and
 fused-multiply-subtract.  Not necessary but nice to have around.

---
 code/ppc-vm.lisp | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/code/ppc-vm.lisp b/code/ppc-vm.lisp
index e64e29f6c..30d102de1 100644
--- a/code/ppc-vm.lisp
+++ b/code/ppc-vm.lisp
@@ -7,7 +7,7 @@
 ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/ppc-vm.lisp,v 1.8 2006/11/14 04:47:49 rtoy Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/ppc-vm.lisp,v 1.9 2008/05/23 18:15:30 rtoy Rel $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -354,3 +354,17 @@
 
 ;;; Enable/Disable scavenging of the read-only space.
 (defvar *scavenge-read-only-space* nil)
+
+;; Not really necessary (AFAICT), but nice to have around.  The
+;; compiler will normally use vops to implement these functions.
+
+(defun fused-multiply-subtract (x y z)
+  "Compute x*y-z with only one rounding operation"
+  (declare (double-float x y z))
+  (fused-multiply-subtract x y z))
+
+(defun fused-multiply-add (x y z)
+  "Compute x*y+z with only one rounding operation"
+  (declare (double-float x y z))
+  (fused-multiply-add x y z))
+
-- 
GitLab