aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-02-18 22:26:46 +0000
committerDiego Biurrun <diego@biurrun.de>2008-02-18 22:26:46 +0000
commit35c27389c063dbb31e2e67d09a5c21e7b93bb51f (patch)
tree7038dda26dc4aabeb24b4e2eaa992576a9da4790 /libavcodec
parentb0e21a3b478841593c05774c21611d540d5ba39f (diff)
downloadffmpeg-35c27389c063dbb31e2e67d09a5c21e7b93bb51f.tar.gz
Refactor the FOUROF macro using the AVV macro.
Originally committed as revision 12139 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ppc/mpegvideo_altivec.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libavcodec/ppc/mpegvideo_altivec.c b/libavcodec/ppc/mpegvideo_altivec.c
index d7fcdfa267..3b5e65106d 100644
--- a/libavcodec/ppc/mpegvideo_altivec.c
+++ b/libavcodec/ppc/mpegvideo_altivec.c
@@ -66,12 +66,8 @@ do { \
}
-#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)