]> rtime.felk.cvut.cz Git - opencv.git/commitdiff
fixed compile errors with GCC on 32-bit OSes
authorvp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Mon, 15 Mar 2010 11:32:52 +0000 (11:32 +0000)
committervp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Mon, 15 Mar 2010 11:32:52 +0000 (11:32 +0000)
git-svn-id: https://code.ros.org/svn/opencv/trunk@2813 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08

opencv/src/cxcore/cxsystem.cpp

index 6ce6b003c625aed421cfe7186982a97e7fe2b63d..f3123428a7e11c1b49d34ec9c998f486c5be82f2 100644 (file)
@@ -89,8 +89,8 @@ struct HWFeatures
         #ifdef __x86_64__
         asm __volatile__
         (
-         "movl $1, %%eax\n"
-         "cpuid\n"
+         "movl $1, %%eax\n\t"
+         "cpuid\n\t"
          :[eax]"=a"(cpuid_data[0]),[ebx]"=b"(cpuid_data[1]),[ecx]"=c"(cpuid_data[2]),[edx]"=d"(cpuid_data[3])
          :
          : "cc"
@@ -98,11 +98,11 @@ struct HWFeatures
         #else
         asm volatile
         (
-         "pushl %%ebx\n"
-         "movl $1,%%eax\n"
-         "cpuid\n"
-         "popl %%ebx\n"
-         : [eax]"=a"(cpuid_data[0]), [ebx]"=b"(cpuid_data[1]), [ecx]"=c"(cpuid_data[2]), [edx]"=d"(cpuid_data[3])
+         "pushl %%ebx\n\t"
+         "movl $1,%%eax\n\t"
+         "cpuid\n\t"
+         "popl %%ebx\n\t"
+         : "=a"(cpuid_data[0]), "=c"(cpuid_data[2]), "=d"(cpuid_data[3])
          :
          : "cc"
         );