Mesa (gallium-0.2): gallium: added ppc_vnmsubfp()

Brian Paul brianp at kemper.freedesktop.org
Wed Oct 29 18:17:57 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 7640264064c2cbc9922f7f3df51f7caa7b449e8e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7640264064c2cbc9922f7f3df51f7caa7b449e8e

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Wed Oct 29 11:03:51 2008 -0600

gallium: added ppc_vnmsubfp()

---

 src/gallium/auxiliary/rtasm/rtasm_ppc.c |    7 +++++++
 src/gallium/auxiliary/rtasm/rtasm_ppc.h |    6 +++++-
 2 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc.c b/src/gallium/auxiliary/rtasm/rtasm_ppc.c
index 7dd8263..a90b558 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_ppc.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_ppc.c
@@ -505,6 +505,13 @@ ppc_vmaddfp(struct ppc_function *p, uint vD, uint vA, uint vB, uint vC)
    emit_va(p, 46, vD, vA, vC, vB); /* note arg order */
 }
 
+/** vector float negative mult subtract: vD = vA - vB * vC */
+void
+ppc_vnmsubfp(struct ppc_function *p, uint vD, uint vA, uint vB, uint vC)
+{
+   emit_va(p, 47, vD, vB, vA, vC); /* note arg order */
+}
+
 /** vector float compare greater than */
 void
 ppc_vcmpgtfpx(struct ppc_function *p, uint vD, uint vA, uint vB)
diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc.h b/src/gallium/auxiliary/rtasm/rtasm_ppc.h
index f938d8d..561e139 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_ppc.h
+++ b/src/gallium/auxiliary/rtasm/rtasm_ppc.h
@@ -97,10 +97,14 @@ ppc_vminfp(struct ppc_function *p, uint vD, uint vA, uint vB);
 extern void
 ppc_vmaxfp(struct ppc_function *p, uint vD, uint vA, uint vB);
 
-/** vector float mult add */
+/** vector float mult add: vD = vA * vB + vC */
 extern void
 ppc_vmaddfp(struct ppc_function *p, uint vD, uint vA, uint vB, uint vC);
 
+/** vector float negative mult subtract: vD = vA - vB * vC */
+extern void
+ppc_vnmsubfp(struct ppc_function *p, uint vD, uint vA, uint vB, uint vC);
+
 /** vector float compare greater than */
 extern void
 ppc_vcmpgtfpx(struct ppc_function *p, uint vD, uint vA, uint vB);




More information about the mesa-commit mailing list