summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-10-23 12:34:46 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-10-23 12:34:46 +0000
commit341b7e2fa5c836a237815d33be0ce91a840ea8cd (patch)
tree4568c8fa6e333d7112ec9b8990d6a28dc211f4a6
parenta3bc40816d4e96e4ed8e5f9af3ce06762f5b506b (diff)
downloadxine-lib-341b7e2fa5c836a237815d33be0ce91a840ea8cd.tar.gz
xine-lib-341b7e2fa5c836a237815d33be0ce91a840ea8cd.tar.bz2
Help compiling in ansi.
CVS patchset: 2965 CVS date: 2002/10/23 12:34:46
-rw-r--r--src/xine-utils/cpu_accel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xine-utils/cpu_accel.c b/src/xine-utils/cpu_accel.c
index 3f3cd7b9c..7acb0ee25 100644
--- a/src/xine-utils/cpu_accel.c
+++ b/src/xine-utils/cpu_accel.c
@@ -38,16 +38,16 @@ static uint32_t arch_accel (void)
#ifndef PIC
#define cpuid(op,eax,ebx,ecx,edx) \
- asm ("cpuid" \
+ __asm__ ("cpuid" \
: "=a" (eax), \
"=b" (ebx), \
"=c" (ecx), \
"=d" (edx) \
: "a" (op) \
: "cc")
-#else // PIC version : save ebx
+#else /* PIC version : save ebx */
#define cpuid(op,eax,ebx,ecx,edx) \
- asm ("pushl %%ebx\n\t" \
+ __asm__ ("pushl %%ebx\n\t" \
"cpuid\n\t" \
"movl %%ebx,%1\n\t" \
"popl %%ebx" \
@@ -59,7 +59,7 @@ static uint32_t arch_accel (void)
: "cc")
#endif
- asm ("pushfl\n\t"
+ __asm__ ("pushfl\n\t"
"pushfl\n\t"
"popl %0\n\t"
"movl %0,%1\n\t"
@@ -142,7 +142,7 @@ static uint32_t arch_accel (void)
canjump = 1;
- asm volatile ("mtspr 256, %0\n\t"
+ __asm__ volatile ("mtspr 256, %0\n\t"
"vand %%v0, %%v0, %%v0"
:
: "r" (-1));
@@ -168,7 +168,7 @@ uint32_t xine_mm_accel (void)
accel &= ~(MM_ACCEL_X86_SSE|MM_ACCEL_X86_SSE2);
} else {
signal (SIGILL, sigill_handler);
- __asm __volatile ("xorps %xmm0, %xmm0");
+ __asm__ volatile ("xorps %xmm0, %xmm0");
signal (SIGILL, SIG_DFL);
}
}