summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/rtasm/rtasm_ppc.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-10-22 17:17:11 -0600
committerBrian Paul <[email protected]>2008-10-22 17:17:11 -0600
commit3026616c48487a7561d8545c08950539f0ad51d1 (patch)
tree1517a76c5d77cdd6c11b254d08e6d7c1aa0cf87f /src/gallium/auxiliary/rtasm/rtasm_ppc.c
parentae81aeb12868db219cbdc02437c481714cfed3f5 (diff)
gallium: added ppc_vzero()
Diffstat (limited to 'src/gallium/auxiliary/rtasm/rtasm_ppc.c')
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_ppc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc.c b/src/gallium/auxiliary/rtasm/rtasm_ppc.c
index 65df676eae6..51d9b536573 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_ppc.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_ppc.c
@@ -669,6 +669,14 @@ ppc_vecmove(struct ppc_function *p, uint vD, uint vA)
ppc_vor(p, vD, vA, vA);
}
+/** Set vector register to {0,0,0,0} */
+void
+ppc_vzero(struct ppc_function *p, uint vr)
+{
+ ppc_vxor(p, vr, vr, vr);
+}
+
+
/**