Mesa (gallium-0.2): rtasm: Use INLINE keyword. Compile for all platforms, not only GALLIUM_CELL.
MichaŠKról
michal at kemper.freedesktop.org
Wed Nov 12 17:45:13 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: 87f77105ce7207d601ee95bc29ca8c0ea1731d78
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=87f77105ce7207d601ee95bc29ca8c0ea1731d78
Author: Michal Krol <michal at tungstengraphics.com>
Date: Wed Nov 12 18:44:20 2008 +0100
rtasm: Use INLINE keyword. Compile for all platforms, not only GALLIUM_CELL.
---
src/gallium/auxiliary/rtasm/rtasm_ppc.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc.c b/src/gallium/auxiliary/rtasm/rtasm_ppc.c
index 5e7bc02..b65bfa7 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_ppc.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_ppc.c
@@ -42,8 +42,6 @@
#include "rtasm_ppc.h"
-#ifdef GALLIUM_CELL
-
void
ppc_init_func(struct ppc_function *p)
{
@@ -253,7 +251,7 @@ union vx_inst {
} inst;
};
-static inline void
+static INLINE void
emit_vx(struct ppc_function *p, uint op2, uint vD, uint vA, uint vB)
{
union vx_inst inst;
@@ -278,7 +276,7 @@ union vxr_inst {
} inst;
};
-static inline void
+static INLINE void
emit_vxr(struct ppc_function *p, uint op2, uint vD, uint vA, uint vB)
{
union vxr_inst inst;
@@ -304,7 +302,7 @@ union va_inst {
} inst;
};
-static inline void
+static INLINE void
emit_va(struct ppc_function *p, uint op2, uint vD, uint vA, uint vB, uint vC)
{
union va_inst inst;
@@ -421,7 +419,7 @@ union d_inst {
} inst;
};
-static inline void
+static INLINE void
emit_d(struct ppc_function *p, uint op, uint rt, uint ra, int si)
{
union d_inst inst;
@@ -448,7 +446,7 @@ union a_inst {
} inst;
};
-static inline void
+static INLINE void
emit_a(struct ppc_function *p, uint op, uint frt, uint fra, uint frb, uint op2,
uint rc)
{
@@ -959,5 +957,3 @@ ppc_return(struct ppc_function *p)
{
ppc_bclr(p, BRANCH_COND_ALWAYS, BRANCH_HINT_SUB_RETURN, 0);
}
-
-#endif /* GALLIUM_CELL */
More information about the mesa-commit
mailing list