[FFmpeg-devel] [PATCH] swr: compile mmx2 s16p functions only on x86-32.

Michael Niedermayer michaelni at gmx.at
Sat Jun 14 22:15:28 CEST 2014


On Sat, Jun 14, 2014 at 02:55:49PM -0400, Ronald S. Bultje wrote:
> ---
>  libswresample/x86/resample_x86_dsp.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libswresample/x86/resample_x86_dsp.c b/libswresample/x86/resample_x86_dsp.c
> index 02a7db5..c9b2bef 100644
> --- a/libswresample/x86/resample_x86_dsp.c
> +++ b/libswresample/x86/resample_x86_dsp.c
> @@ -33,9 +33,11 @@
>  
>  #include "resample_mmx.h"
>  
> +#if ARCH_X86_32
>  #define TEMPLATE_RESAMPLE_S16_MMX2
>  #include "libswresample/resample_template.c"
>  #undef TEMPLATE_RESAMPLE_S16_MMX2
> +#endif

make distclean ; ./configure && make -j12

produces:

libswresample/x86/resample_x86_dsp.c: In function ‘swresample_dsp_x86_init’:
libswresample/x86/resample_x86_dsp.c:74:61: error: ‘resample_common_int16_mmx2’ undeclared (first use in this function)
libswresample/x86/resample_x86_dsp.c:74:61: note: each undeclared identifier is reported only once for each function it appears in
libswresample/x86/resample_x86_dsp.c:75:61: error: ‘resample_linear_int16_mmx2’ undeclared (first use in this function)
make: *** [libswresample/x86/resample_x86_dsp.o] Error 1

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140614/9da3a363/attachment.asc>


More information about the ffmpeg-devel mailing list