mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 01:31:03 +00:00
Converted the mpeg2 encoder asm to gnu asm, removing the dependency of nasm
Original commit message from CVS: Converted the mpeg2 encoder asm to gnu asm, removing the dependency of nasm Added cpu detection in the mpeg2 encoder removed the inlined mmx asembler to seperate files.
This commit is contained in:
parent
5a7cbafdda
commit
2c42495cf0
3 changed files with 5 additions and 4 deletions
|
@ -5,10 +5,10 @@ filter_LTLIBRARIES = libgstgetbits.la
|
|||
if HAVE_CPU_I386
|
||||
GSTARCH_SRCS = gstgetbits_i386.s
|
||||
else
|
||||
GSTARCH_SRCS = gstgetbits_generic.c
|
||||
GSTARCH_SRCS =
|
||||
endif
|
||||
|
||||
libgstgetbits_la_SOURCES = gstgetbits.c gstgetbits_inl.h $(GSTARCH_SRCS)
|
||||
libgstgetbits_la_SOURCES = gstgetbits.c gstgetbits_inl.h gstgetbits_generic.c $(GSTARCH_SRCS)
|
||||
EXTRA_libgstgetbits_la_SOURCES = gstgetbits_i386.s gstgetbits_generic.c
|
||||
|
||||
libgstgetbitsincludedir = $(includedir)/gst/libs/gstgetbits
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// FIXME - remove this HAVE_LIBMMX - let configure set it.
|
||||
#undef HAVE_LIBMMX
|
||||
|
||||
#include <byteswap.h>
|
||||
//#include <byteswap.h>
|
||||
|
||||
#ifdef HAVE_LIBMMX
|
||||
#include <mmx.h>
|
||||
|
@ -30,7 +30,7 @@
|
|||
#else
|
||||
# if defined (__i386__)
|
||||
# define swab32(x) __i386_swab32(x)
|
||||
static inline const guint32 __i386_swab32(guint32 x)
|
||||
static inline const unsigned long __i386_swab32(unsigned long x)
|
||||
{
|
||||
__asm__("bswap %0" : "=r" (x) : "0" (x));
|
||||
return x;
|
||||
|
|
1
test/.gitignore
vendored
1
test/.gitignore
vendored
|
@ -43,3 +43,4 @@ mp2tomp1
|
|||
mp2toavi
|
||||
mp1tomp1
|
||||
pipetest
|
||||
mp3tovorbis
|
||||
|
|
Loading…
Reference in a new issue