]> git.sesse.net Git - ffmpeg/commitdiff
fft: ppc: Place ff_fft_calc_interleave_altivec() under correct ifdefs
authorDiego Biurrun <diego@biurrun.de>
Sat, 30 Jan 2016 13:39:00 +0000 (14:39 +0100)
committerDiego Biurrun <diego@biurrun.de>
Mon, 15 Feb 2016 10:58:04 +0000 (11:58 +0100)
Also fix #endif comments in the FFT init code.

libavcodec/ppc/fft_altivec.S
libavcodec/ppc/fft_init.c

index c92b30b897e3d7c05dbaa38fa4085ca50a775e2a..cb7c8716cd386a2e90f792b4d7e558c3dc4acc05 100644 (file)
@@ -40,7 +40,7 @@
 
 #include "config.h"
 
-#if HAVE_GNU_AS && HAVE_ALTIVEC
+#if HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN
 
 #include "asm.S"
 
@@ -451,4 +451,4 @@ fft_dispatch_tab\suffix\()_altivec:
 DECL_FFTS 0
 DECL_FFTS 1, _interleave
 
-#endif /* HAVE_GNU_AS && HAVE_ALTIVEC */
+#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN */
index 9e79f70ed09592de7ed2f90cd327ed27406c780b..a7499001883f87e3a87f726f82b4832b7f8a2d89 100644 (file)
@@ -139,7 +139,7 @@ static void imdct_calc_altivec(FFTContext *s, FFTSample *output, const FFTSample
         p1[k]    = vec_perm(b, b, vcprm(3,2,1,0));
     }
 }
-#endif /* HAVE_GNU_AS && HAVE_ALTIVEC */
+#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN */
 
 av_cold void ff_fft_init_ppc(FFTContext *s)
 {
@@ -152,5 +152,5 @@ av_cold void ff_fft_init_ppc(FFTContext *s)
         s->imdct_calc = imdct_calc_altivec;
         s->imdct_half = imdct_half_altivec;
     }
-#endif /* HAVE_GNU_AS && HAVE_ALTIVEC */
+#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN */
 }