summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-06-02 22:31:02 +0900
committerJosé Fonseca <[email protected]>2008-06-02 22:31:02 +0900
commite0860518dfb5a5c6ba6584e3c1b5d7b203277dac (patch)
treecb3937f94d13e3fcc0db22107663e80c06906d6c /src/gallium/auxiliary/tgsi
parent8d9a96386a5be7f15968bed63ca8b3e5555bbeeb (diff)
gallium: Replace XSTDCALL by PIPE_CDECL.
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rwxr-xr-xsrc/gallium/auxiliary/tgsi/exec/tgsi_sse2.c38
1 files changed, 9 insertions, 29 deletions
diff --git a/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c b/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c
index cdce5ea9c52..cdbdf5c8827 100755
--- a/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c
+++ b/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c
@@ -194,22 +194,12 @@ get_coef(
}
-#ifdef WIN32
-static void
-emit_retw(
- struct x86_function *func,
- unsigned short size )
-{
- x86_retw( func, size );
-}
-#else
static void
emit_ret(
struct x86_function *func )
{
x86_ret( func );
}
-#endif
/**
@@ -475,7 +465,7 @@ static void
emit_func_call_dst(
struct x86_function *func,
unsigned xmm_dst,
- void (*code)() )
+ void (PIPE_CDECL *code)() )
{
sse_movaps(
func,
@@ -496,9 +486,7 @@ emit_func_call_dst(
x86_push( func, ecx );
x86_mov_reg_imm( func, ecx, (unsigned long) code );
x86_call( func, ecx );
-#ifndef WIN32
x86_pop(func, ecx );
-#endif
}
@@ -516,7 +504,7 @@ emit_func_call_dst_src(
struct x86_function *func,
unsigned xmm_dst,
unsigned xmm_src,
- void (*code)() )
+ void (PIPE_CDECL *code)() )
{
sse_movaps(
func,
@@ -558,7 +546,7 @@ emit_add(
make_xmm( xmm_src ) );
}
-static void XSTDCALL
+static void PIPE_CDECL
cos4f(
float *store )
{
@@ -581,7 +569,7 @@ emit_cos(
cos4f );
}
-static void XSTDCALL
+static void PIPE_CDECL
ex24f(
float *store )
{
@@ -615,7 +603,7 @@ emit_f2it(
make_xmm( xmm ) );
}
-static void XSTDCALL
+static void PIPE_CDECL
flr4f(
float *store )
{
@@ -638,7 +626,7 @@ emit_flr(
flr4f );
}
-static void XSTDCALL
+static void PIPE_CDECL
frc4f(
float *store )
{
@@ -661,7 +649,7 @@ emit_frc(
frc4f );
}
-static void XSTDCALL
+static void PIPE_CDECL
lg24f(
float *store )
{
@@ -720,7 +708,7 @@ emit_neg(
TGSI_EXEC_TEMP_80000000_C ) );
}
-static void XSTDCALL
+static void PIPE_CDECL
pow4f(
float *store )
{
@@ -820,7 +808,7 @@ emit_setsign(
TGSI_EXEC_TEMP_80000000_C ) );
}
-static void XSTDCALL
+static void PIPE_CDECL
sin4f(
float *store )
{
@@ -1736,11 +1724,7 @@ emit_instruction(
break;
case TGSI_OPCODE_RET:
-#ifdef WIN32
- emit_retw( func, 16 );
-#else
emit_ret( func );
-#endif
break;
case TGSI_OPCODE_END:
@@ -2281,11 +2265,7 @@ tgsi_emit_sse2(
func,
get_immediate_base() );
-#ifdef WIN32
- emit_retw( func, 16 );
-#else
emit_ret( func );
-#endif
tgsi_parse_free( &parse );