mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
hadamard/AltiVec: fix to compiler fix, again by (Romain Dolbeau <dolbeau at irisa dot fr>)
Originally committed as revision 3207 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1ec4df0fa8
commit
78421be13d
@ -1302,7 +1302,7 @@ POWERPC_PERF_STOP_COUNT(altivec_put_no_rnd_pixels16_xy2_num, 1);
|
||||
#endif /* ALTIVEC_USE_REFERENCE_C_CODE */
|
||||
}
|
||||
|
||||
#if (__GNUC__ * 100 + __GNUC_MINOR__ * 10 >= 330)
|
||||
#ifdef CONFIG_DARWIN
|
||||
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_START_COUNT(altivec_hadamard8_diff16_num, 1);
|
||||
POWERPC_PERF_STOP_COUNT(altivec_hadamard8_diff16_num, 1);
|
||||
return score;
|
||||
}
|
||||
#endif // GCC >= 3.3
|
||||
#endif //CONFIG_DARWIN
|
||||
|
||||
int has_altivec(void)
|
||||
{
|
||||
|
@ -278,7 +278,7 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx)
|
||||
|
||||
c->gmc1 = gmc1_altivec;
|
||||
|
||||
#if (__GNUC__ * 100 + __GNUC_MINOR__ * 10 >= 330)
|
||||
#ifdef CONFIG_DARWIN // ATM gcc-3.3 and gcc-3.4 fail to compile these in linux...
|
||||
c->hadamard8_diff[0] = hadamard8_diff16_altivec;
|
||||
c->hadamard8_diff[1] = hadamard8_diff8x8_altivec;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user