summaryrefslogtreecommitdiff
path: root/libavcodec/ppc
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-08-22 22:46:39 +0000
committerDiego Biurrun <diego@biurrun.de>2007-08-22 22:46:39 +0000
commit9d16f87ffddff90182d679531a3c3b09f1243471 (patch)
tree9ed49f703a7564056f452a28b0dc8a713749f672 /libavcodec/ppc
parente241ba148fb725c84cdaef896f960767c5d6dcc4 (diff)
Rename CONFIG_DARWIN to SYS_DARWIN, it is not configurable (in FFmpeg).
Originally committed as revision 10190 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r--libavcodec/ppc/dsputil_altivec.c10
-rw-r--r--libavcodec/ppc/dsputil_altivec.h4
-rw-r--r--libavcodec/ppc/gcc_fixes.h4
-rw-r--r--libavcodec/ppc/mpegvideo_altivec.c2
4 files changed, 10 insertions, 10 deletions
diff --git a/libavcodec/ppc/dsputil_altivec.c b/libavcodec/ppc/dsputil_altivec.c
index 700c9e6295..34fdab1bcf 100644
--- a/libavcodec/ppc/dsputil_altivec.c
+++ b/libavcodec/ppc/dsputil_altivec.c
@@ -26,7 +26,7 @@
#include "dsputil_altivec.h"
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
#include <sys/sysctl.h>
#elif __AMIGAOS4__
#include <exec/exec.h>
@@ -49,7 +49,7 @@ static void sigill_handler (int sig)
canjump = 0;
siglongjmp (jmpbuf, 1);
}
-#endif /* CONFIG_DARWIN */
+#endif /* SYS_DARWIN */
int sad16_x2_altivec(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h)
{
@@ -1428,7 +1428,7 @@ int has_altivec(void)
return 0;
#else /* __AMIGAOS4__ */
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
int sels[2] = {CTL_HW, HW_VECTORUNIT};
int has_vu = 0;
size_t len = sizeof(has_vu);
@@ -1437,7 +1437,7 @@ int has_altivec(void)
err = sysctl(sels, 2, &has_vu, &len, NULL, 0);
if (err == 0) return (has_vu != 0);
-#else /* CONFIG_DARWIN */
+#else /* SYS_DARWIN */
/* no Darwin, do it the brute-force way */
/* this is borrowed from the libmpeg2 library */
{
@@ -1456,7 +1456,7 @@ int has_altivec(void)
return 1;
}
}
-#endif /* CONFIG_DARWIN */
+#endif /* SYS_DARWIN */
return 0;
#endif /* __AMIGAOS4__ */
}
diff --git a/libavcodec/ppc/dsputil_altivec.h b/libavcodec/ppc/dsputil_altivec.h
index ff5fc68b35..c96d49a110 100644
--- a/libavcodec/ppc/dsputil_altivec.h
+++ b/libavcodec/ppc/dsputil_altivec.h
@@ -44,7 +44,7 @@ void avg_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size,
#define WORD_s2 0x18,0x19,0x1a,0x1b
#define WORD_s3 0x1c,0x1d,0x1e,0x1f
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
#define vcprm(a,b,c,d) (const vector unsigned char)(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d)
#else
#define vcprm(a,b,c,d) (const vector unsigned char){WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d}
@@ -61,7 +61,7 @@ void avg_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size,
#define FLOAT_p 1.
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
#define vcii(a,b,c,d) (const vector float)(FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d)
#else
#define vcii(a,b,c,d) (const vector float){FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d}
diff --git a/libavcodec/ppc/gcc_fixes.h b/libavcodec/ppc/gcc_fixes.h
index b91e3a6615..50d78ee6a4 100644
--- a/libavcodec/ppc/gcc_fixes.h
+++ b/libavcodec/ppc/gcc_fixes.h
@@ -27,7 +27,7 @@
#include <altivec.h>
#endif
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
# ifndef __MWERKS__
# define AVV(x...) (x)
# else
@@ -108,7 +108,7 @@ __ch (__bin_args_eq (vector unsigned int, (a1), vector unsigned int, (a2)), \
#endif
-#endif /* CONFIG_DARWIN */
+#endif /* SYS_DARWIN */
#ifndef __MWERKS__
#define const_vector const vector
diff --git a/libavcodec/ppc/mpegvideo_altivec.c b/libavcodec/ppc/mpegvideo_altivec.c
index cf992e511f..1e05acc2e5 100644
--- a/libavcodec/ppc/mpegvideo_altivec.c
+++ b/libavcodec/ppc/mpegvideo_altivec.c
@@ -66,7 +66,7 @@ do { \
}
-#ifdef CONFIG_DARWIN
+#ifdef SYS_DARWIN
#define FOUROF(a) (a)
#else
// slower, for dumb non-apple GCC