comparison libmpcodecs/pullup.c @ 27754:08d18fe9da52

Change all occurrences of asm and __asm to __asm__, same as was done for FFmpeg. Neither variant is valid C99 syntax, but __asm__ is the most portable variant.
author diego
date Thu, 16 Oct 2008 18:59:27 +0000
parents 0d255d03016f
children 25337a2147e7
comparison
equal deleted inserted replaced
27753:6c915906bbc6 27754:08d18fe9da52
12 #ifdef ARCH_X86 12 #ifdef ARCH_X86
13 #ifdef HAVE_MMX 13 #ifdef HAVE_MMX
14 static int diff_y_mmx(unsigned char *a, unsigned char *b, int s) 14 static int diff_y_mmx(unsigned char *a, unsigned char *b, int s)
15 { 15 {
16 int ret; 16 int ret;
17 asm volatile ( 17 __asm__ volatile (
18 "movl $4, %%ecx \n\t" 18 "movl $4, %%ecx \n\t"
19 "pxor %%mm4, %%mm4 \n\t" 19 "pxor %%mm4, %%mm4 \n\t"
20 "pxor %%mm7, %%mm7 \n\t" 20 "pxor %%mm7, %%mm7 \n\t"
21 21
22 "1: \n\t" 22 "1: \n\t"
59 } 59 }
60 60
61 static int licomb_y_mmx(unsigned char *a, unsigned char *b, int s) 61 static int licomb_y_mmx(unsigned char *a, unsigned char *b, int s)
62 { 62 {
63 int ret; 63 int ret;
64 asm volatile ( 64 __asm__ volatile (
65 "movl $4, %%ecx \n\t" 65 "movl $4, %%ecx \n\t"
66 "pxor %%mm6, %%mm6 \n\t" 66 "pxor %%mm6, %%mm6 \n\t"
67 "pxor %%mm7, %%mm7 \n\t" 67 "pxor %%mm7, %%mm7 \n\t"
68 "sub %%"REG_a", %%"REG_D" \n\t" 68 "sub %%"REG_a", %%"REG_D" \n\t"
69 69
148 } 148 }
149 149
150 static int var_y_mmx(unsigned char *a, unsigned char *b, int s) 150 static int var_y_mmx(unsigned char *a, unsigned char *b, int s)
151 { 151 {
152 int ret; 152 int ret;
153 asm volatile ( 153 __asm__ volatile (
154 "movl $3, %%ecx \n\t" 154 "movl $3, %%ecx \n\t"
155 "pxor %%mm4, %%mm4 \n\t" 155 "pxor %%mm4, %%mm4 \n\t"
156 "pxor %%mm7, %%mm7 \n\t" 156 "pxor %%mm7, %%mm7 \n\t"
157 157
158 "1: \n\t" 158 "1: \n\t"