mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 10:30:05 +01:00
lavc/ppc/fft_init: Fix compilation on ppc64le with --disable-vsx.
This commit is contained in:
@@ -42,7 +42,7 @@ void ff_fft_calc_altivec(FFTContext *s, FFTComplex *z);
|
|||||||
void ff_fft_calc_interleave_altivec(FFTContext *s, FFTComplex *z);
|
void ff_fft_calc_interleave_altivec(FFTContext *s, FFTComplex *z);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_GNU_AS && HAVE_ALTIVEC
|
#if HAVE_GNU_AS && HAVE_ALTIVEC && (HAVE_BIGENDIAN || HAVE_VSX)
|
||||||
static void imdct_half_altivec(FFTContext *s, FFTSample *output, const FFTSample *input)
|
static void imdct_half_altivec(FFTContext *s, FFTSample *output, const FFTSample *input)
|
||||||
{
|
{
|
||||||
int j, k;
|
int j, k;
|
||||||
@@ -146,11 +146,11 @@ static void imdct_calc_altivec(FFTContext *s, FFTSample *output, const FFTSample
|
|||||||
p1[k] = vec_perm(b, b, vcprm(3,2,1,0));
|
p1[k] = vec_perm(b, b, vcprm(3,2,1,0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN */
|
#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && (HAVE_BIGENDIAN || HAVE_VSX) */
|
||||||
|
|
||||||
av_cold void ff_fft_init_ppc(FFTContext *s)
|
av_cold void ff_fft_init_ppc(FFTContext *s)
|
||||||
{
|
{
|
||||||
#if HAVE_GNU_AS && HAVE_ALTIVEC
|
#if HAVE_GNU_AS && HAVE_ALTIVEC && (HAVE_BIGENDIAN || HAVE_VSX)
|
||||||
if (!PPC_ALTIVEC(av_get_cpu_flags()))
|
if (!PPC_ALTIVEC(av_get_cpu_flags()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user