From 341b7e2fa5c836a237815d33be0ce91a840ea8cd Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Wed, 23 Oct 2002 12:34:46 +0000 Subject: Help compiling in ansi. CVS patchset: 2965 CVS date: 2002/10/23 12:34:46 --- src/xine-utils/cpu_accel.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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); } } -- cgit v1.2.3