changeset 25484:943f37a4323d

cosmetics: Remove trailing whitespace, reformat one comment.
author diego
date Sat, 22 Dec 2007 19:16:01 +0000
parents 170fc6d9dfa1
children 765211fd3efb
files liba52/resample.c liba52/resample_altivec.c liba52/resample_mmx.c
diffstat 3 files changed, 23 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/liba52/resample.c	Sat Dec 22 19:11:54 2007 +0000
+++ b/liba52/resample.c	Sat Dec 22 19:16:01 2007 +0000
@@ -69,14 +69,14 @@
       }
     }
 #endif
-    
+
     tmp=a52_resample_C(flags,chans);
     if(tmp){
 	if(a52_resample==NULL) fprintf(stderr, "No accelerated resampler found\n");
 	a52_resample=tmp;
 	return tmp;
     }
-    
+
     fprintf(stderr, "Unimplemented resampler for mode 0x%X -> %d channels conversion - Contact MPlayer developers!\n", flags, chans);
     return NULL;
 }
--- a/liba52/resample_altivec.c	Sat Dec 22 19:11:54 2007 +0000
+++ b/liba52/resample_altivec.c	Sat Dec 22 19:16:01 2007 +0000
@@ -71,7 +71,7 @@
   for (i = 0; i < 256; i+= 8) {
     f0 = vec_ld(0, f);
     f4 = vec_ld(16, f);
-    
+
     f256 = vec_ld(1024, f);
     f260 = vec_ld(1040, f);
 
--- a/liba52/resample_mmx.c	Sat Dec 22 19:11:54 2007 +0000
+++ b/liba52/resample_mmx.c	Sat Dec 22 19:16:01 2007 +0000
@@ -22,11 +22,11 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-/* optimization TODO / NOTES 
-    movntq is slightly faster (0.5% with the current test.c benchmark) 
-	(but that is just test.c so that needs to be tested in reality)
-	and it would mean (C / MMX2 / MMX / 3DNOW) versions 
-*/
+/* optimization TODO / NOTES
+ * movntq is slightly faster (0.5% with the current test.c benchmark)
+ * (but that is just test.c so that needs to be tested in reality)
+ * and it would mean (C / MMX2 / MMX / 3DNOW) versions.
+ */
 
 #include "a52_internal.h"
 
@@ -165,7 +165,7 @@
 		"packssdw %%mm3, %%mm2		\n\t"
 		"movq %%mm0, 24(%0, %%"REG_D")	\n\t"
 		"movq %%mm2, 32(%0, %%"REG_D")	\n\t"
-				
+
 		"add $16, %%"REG_S"		\n\t"
 		" jnz 1b			\n\t"
 		"emms				\n\t"
@@ -258,7 +258,7 @@
 		"movq %%mm0, (%0, %%"REG_D")	\n\t"
 		"movq %%mm2, 8(%0, %%"REG_D")	\n\t"
 		"movq %%mm4, 16(%0, %%"REG_D")	\n\t"
-		
+
 		"movd 3080(%1, %%"REG_S"), %%mm0\n\t"
 		"punpckldq 4104(%1, %%"REG_S"), %%mm0\n\t"
 		"movd 1032(%1, %%"REG_S"), %%mm1\n\t"
@@ -275,7 +275,7 @@
 		"packssdw %%mm3, %%mm2		\n\t"
 		"movq %%mm0, 24(%0, %%"REG_D")	\n\t"
 		"movq %%mm2, 32(%0, %%"REG_D")	\n\t"
-				
+
 		"add $16, %%"REG_S"		\n\t"
 		" jnz 1b			\n\t"
 		"emms				\n\t"
@@ -334,12 +334,12 @@
 		"1:				\n\t"
 		"movq 1024(%1, %%"REG_S"), %%mm0\n\t"
 		"movq 2048(%1, %%"REG_S"), %%mm1\n\t"
-		"movq (%1, %%"REG_S"), %%mm5	\n\t" 
+		"movq (%1, %%"REG_S"), %%mm5	\n\t"
 		"psubd %%mm7, %%mm0		\n\t"
 		"psubd %%mm7, %%mm1		\n\t"
 		"psubd %%mm7, %%mm5		\n\t"
 		"lea (%%"REG_S", %%"REG_S", 2), %%"REG_D"\n\t"
-		
+
 		"pxor %%mm4, %%mm4		\n\t"
 		"packssdw %%mm5, %%mm0		\n\t" // FfAa
 		"packssdw %%mm4, %%mm1		\n\t" // 00Bb
@@ -349,7 +349,7 @@
 		"punpckldq %%mm4, %%mm3		\n\t" // f0XX
 		"punpckldq %%mm6, %%mm0		\n\t" // 00ba
 		"punpckhdq %%mm1, %%mm3		\n\t" // BAf0
-		
+
 		"movq %%mm0, (%0, %%"REG_D")	\n\t" // 00ba
 		"punpckhdq %%mm4, %%mm0		\n\t" // F000
 		"movq %%mm3, 8(%0, %%"REG_D")	\n\t" // BAf0
@@ -373,13 +373,13 @@
 		"movq 1024(%1, %%"REG_S"), %%mm0\n\t"
 		"movq 3072(%1, %%"REG_S"), %%mm1\n\t"
 		"movq 2048(%1, %%"REG_S"), %%mm4\n\t"
-		"movq (%1, %%"REG_S"), %%mm5	\n\t" 
+		"movq (%1, %%"REG_S"), %%mm5	\n\t"
 		"psubd %%mm7, %%mm0		\n\t"
 		"psubd %%mm7, %%mm1		\n\t"
 		"psubd %%mm7, %%mm4		\n\t"
 		"psubd %%mm7, %%mm5		\n\t"
 		"lea (%%"REG_S", %%"REG_S", 2), %%"REG_D"\n\t"
-		
+
 		"packssdw %%mm4, %%mm0		\n\t" // EeAa
 		"packssdw %%mm5, %%mm1		\n\t" // FfBb
 		"movq %%mm0, %%mm2		\n\t" // EeAa
@@ -388,7 +388,7 @@
 		"movq %%mm0, %%mm1		\n\t" // BAba
 		"punpckldq %%mm6, %%mm0		\n\t" // 00ba
 		"punpckhdq %%mm1, %%mm1		\n\t" // BABA
-		
+
 		"movq %%mm0, (%0, %%"REG_D")	\n\t"
 		"punpckhdq %%mm2, %%mm0		\n\t" // FE00
 		"punpckldq %%mm1, %%mm2		\n\t" // BAfe
@@ -414,14 +414,14 @@
 		"movq 2048(%1, %%"REG_S"), %%mm1\n\t"
 		"movq 3072(%1, %%"REG_S"), %%mm2\n\t"
 		"movq 4096(%1, %%"REG_S"), %%mm3\n\t"
-		"movq (%1, %%"REG_S"), %%mm5	\n\t" 
+		"movq (%1, %%"REG_S"), %%mm5	\n\t"
 		"psubd %%mm7, %%mm0		\n\t"
 		"psubd %%mm7, %%mm1		\n\t"
 		"psubd %%mm7, %%mm2		\n\t"
 		"psubd %%mm7, %%mm3		\n\t"
 		"psubd %%mm7, %%mm5		\n\t"
 		"lea (%%"REG_S", %%"REG_S", 2), %%"REG_D"\n\t"
-		
+
 		"packssdw %%mm2, %%mm0		\n\t" // CcAa
 		"packssdw %%mm3, %%mm1		\n\t" // DdBb
 		"packssdw %%mm5, %%mm5		\n\t" // FfFf
@@ -436,7 +436,7 @@
 		"punpckhdq %%mm1, %%mm1		\n\t" // BABA
 		"punpckldq %%mm1, %%mm4		\n\t" // BAf0
 		"punpckhdq %%mm3, %%mm2		\n\t" // F0DC
-		
+
 		"movq %%mm0, (%0, %%"REG_D")	\n\t"
 		"movq %%mm4, 8(%0, %%"REG_D")	\n\t"
 		"movq %%mm2, 16(%0, %%"REG_D")	\n\t"
@@ -461,7 +461,7 @@
 		"movq 4096(%1, %%"REG_S"), %%mm2\n\t"
 		"movq 5120(%1, %%"REG_S"), %%mm3\n\t"
 		"movq 2048(%1, %%"REG_S"), %%mm4\n\t"
-		"movq (%1, %%"REG_S"), %%mm5	\n\t" 
+		"movq (%1, %%"REG_S"), %%mm5	\n\t"
 		"psubd %%mm7, %%mm0		\n\t"
 		"psubd %%mm7, %%mm1		\n\t"
 		"psubd %%mm7, %%mm2		\n\t"
@@ -469,7 +469,7 @@
 		"psubd %%mm7, %%mm4		\n\t"
 		"psubd %%mm7, %%mm5		\n\t"
 		"lea (%%"REG_S", %%"REG_S", 2), %%"REG_D"\n\t"
-		
+
 		"packssdw %%mm2, %%mm0		\n\t" // CcAa
 		"packssdw %%mm3, %%mm1		\n\t" // DdBb
 		"packssdw %%mm4, %%mm4		\n\t" // EeEe
@@ -484,7 +484,7 @@
 		"punpckhdq %%mm1, %%mm1		\n\t" // BABA
 		"punpckldq %%mm1, %%mm4		\n\t" // BAfe
 		"punpckhdq %%mm3, %%mm2		\n\t" // FEDC
-		
+
 		"movq %%mm0, (%0, %%"REG_D")	\n\t"
 		"movq %%mm4, 8(%0, %%"REG_D")	\n\t"
 		"movq %%mm2, 16(%0, %%"REG_D")	\n\t"