diff cpudetect.c @ 29263:0f1b5b68af32

whitespace cosmetics: Remove all trailing whitespace.
author diego
date Wed, 13 May 2009 02:58:57 +0000
parents 06540eb5ef6a
children c1a3f1bbba26
line wrap: on
line diff
--- a/cpudetect.c	Tue May 12 19:25:35 2009 +0000
+++ b/cpudetect.c	Wed May 13 02:58:57 2009 +0000
@@ -29,8 +29,8 @@
 #include <proto/exec.h>
 #endif
 
-/* Thanks to the FreeBSD project for some of this cpuid code, and 
- * help understanding how to use it.  Thanks to the Mesa 
+/* Thanks to the FreeBSD project for some of this cpuid code, and
+ * help understanding how to use it.  Thanks to the Mesa
  * team for SSE support detection and more cpu detect code.
  */
 
@@ -52,19 +52,19 @@
                           "pushfl\n\t"
                           "pop %0\n\t"
                           "mov %0, %1\n\t"
-                          
+
                           /* ... Toggle the ID bit in one copy and store */
                           /*     to the EFLAGS reg */
                           "xor $0x200000, %0\n\t"
                           "push %0\n\t"
                           "popfl\n\t"
-                          
+
                           /* ... Get the (hopefully modified) EFLAGS */
                           "pushfl\n\t"
                           "pop %0\n\t"
                           : "=a" (a), "=c" (c)
                           :
-                          : "cc" 
+                          : "cc"
                           );
 
 	return a != c;
@@ -86,7 +86,7 @@
 	("mov %%"REG_b", %%"REG_S"\n\t"
          "cpuid\n\t"
          "xchg %%"REG_b", %%"REG_S
-         : "=a" (p[0]), "=S" (p[1]), 
+         : "=a" (p[0]), "=S" (p[1]),
            "=c" (p[2]), "=d" (p[3])
          : "0" (ax));
 #endif
@@ -274,7 +274,7 @@
    if(ep->ExceptionRecord->ExceptionCode==EXCEPTION_ILLEGAL_INSTRUCTION){
       mp_msg(MSGT_CPUDETECT,MSGL_V, "SIGILL, " );
       ep->ContextRecord->Eip +=3;
-      gCpuCaps.hasSSE=0;       
+      gCpuCaps.hasSSE=0;
 	  return EXCEPTION_CONTINUE_EXECUTION;
    }
    return EXCEPTION_CONTINUE_SEARCH;
@@ -305,7 +305,7 @@
  * and RedHat patched 2.2 kernels that have broken exception handling
  * support for user space apps that do SSE.
  */
- 
+
 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
 #define SSE_SYSCTL_NAME "hw.instruction_sse"
 #elif defined(__APPLE__)
@@ -433,7 +433,7 @@
         signal (sig, SIG_DFL);
         raise (sig);
     }
-    
+
     canjump = 0;
     siglongjmp (jmpbuf, 1);
 }
@@ -455,7 +455,7 @@
 	caps->hasSSE4a=0;
 	caps->isX86=0;
 	caps->hasAltiVec = 0;
-#if HAVE_ALTIVEC   
+#if HAVE_ALTIVEC
 #ifdef __APPLE__
 /*
   rip-off from ffmpeg altivec detection code.
@@ -467,7 +467,7 @@
                 size_t len = sizeof(has_vu);
                 int err;
 
-                err = sysctl(sels, 2, &has_vu, &len, NULL, 0);   
+                err = sysctl(sels, 2, &has_vu, &len, NULL, 0);
 
                 if (err == 0)
                         if (has_vu != 0)
@@ -488,12 +488,12 @@
             signal (SIGILL, SIG_DFL);
           } else {
             canjump = 1;
-            
+
             __asm__ volatile ("mtspr 256, %0\n\t"
                           "vand %%v0, %%v0, %%v0"
                           :
                           : "r" (-1));
-            
+
             signal (SIGILL, SIG_DFL);
             caps->hasAltiVec = 1;
           }