changeset 6367:f02434b252ce libavcodec

Refactor the FOUROF macro using the AVV macro.
author diego
date Mon, 18 Feb 2008 22:26:46 +0000
parents 81d6ff9da713
children 71d8c1fd3d88
files ppc/mpegvideo_altivec.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/mpegvideo_altivec.c	Mon Feb 18 22:22:17 2008 +0000
+++ b/ppc/mpegvideo_altivec.c	Mon Feb 18 22:26:46 2008 +0000
@@ -66,12 +66,8 @@
 }
 
 
-#ifdef __APPLE_CC__
-#define FOUROF(a) (a)
-#else
-// slower, for dumb non-apple GCC
-#define FOUROF(a) {a,a,a,a}
-#endif
+#define FOUROF(a) AVV(a,a,a,a)
+
 int dct_quantize_altivec(MpegEncContext* s,
                         DCTELEM* data, int n,
                         int qscale, int* overflow)