Mercurial > libavcodec.hg
changeset 2056:31bf68b1792b libavcodec
hadamard/AltiVec: fix to compiler fix by (Romain Dolbeau <dolbeau at irisa dot fr>)
author | michael |
---|---|
date | Sat, 05 Jun 2004 22:26:03 +0000 |
parents | 1c019179525c |
children | 4c663228e020 |
files | ppc/dsputil_altivec.c ppc/dsputil_ppc.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ppc/dsputil_altivec.c Sat Jun 05 22:23:55 2004 +0000 +++ b/ppc/dsputil_altivec.c Sat Jun 05 22:26:03 2004 +0000 @@ -1302,7 +1302,7 @@ #endif /* ALTIVEC_USE_REFERENCE_C_CODE */ } -#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 330) +#if (__GNUC__ * 100 + __GNUC_MINOR__ * 10 >= 330) int hadamard8_diff8x8_altivec(/*MpegEncContext*/ void *s, uint8_t *dst, uint8_t *src, int stride, int h){ POWERPC_PERF_DECLARE(altivec_hadamard8_diff8x8_num, 1); int sum; @@ -1612,7 +1612,7 @@ POWERPC_PERF_STOP_COUNT(altivec_hadamard8_diff16_num, 1); return score; } -#endif +#endif // GCC >= 3.3 int has_altivec(void) {
--- a/ppc/dsputil_ppc.c Sat Jun 05 22:23:55 2004 +0000 +++ b/ppc/dsputil_ppc.c Sat Jun 05 22:26:03 2004 +0000 @@ -279,7 +279,7 @@ c->gmc1 = gmc1_altivec; -#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 330) +#if (__GNUC__ * 100 + __GNUC_MINOR__ * 10 >= 330) c->hadamard8_diff[0] = hadamard8_diff16_altivec; c->hadamard8_diff[1] = hadamard8_diff8x8_altivec; #endif