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:
Wim Taymans 2000-09-17 12:31:01 +00:00
parent 5a7cbafdda
commit 2c42495cf0
3 changed files with 5 additions and 4 deletions

View file

@ -5,10 +5,10 @@ filter_LTLIBRARIES = libgstgetbits.la
if HAVE_CPU_I386 if HAVE_CPU_I386
GSTARCH_SRCS = gstgetbits_i386.s GSTARCH_SRCS = gstgetbits_i386.s
else else
GSTARCH_SRCS = gstgetbits_generic.c GSTARCH_SRCS =
endif 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 EXTRA_libgstgetbits_la_SOURCES = gstgetbits_i386.s gstgetbits_generic.c
libgstgetbitsincludedir = $(includedir)/gst/libs/gstgetbits libgstgetbitsincludedir = $(includedir)/gst/libs/gstgetbits

View file

@ -7,7 +7,7 @@
// FIXME - remove this HAVE_LIBMMX - let configure set it. // FIXME - remove this HAVE_LIBMMX - let configure set it.
#undef HAVE_LIBMMX #undef HAVE_LIBMMX
#include <byteswap.h> //#include <byteswap.h>
#ifdef HAVE_LIBMMX #ifdef HAVE_LIBMMX
#include <mmx.h> #include <mmx.h>
@ -30,7 +30,7 @@
#else #else
# if defined (__i386__) # if defined (__i386__)
# define swab32(x) __i386_swab32(x) # 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)); __asm__("bswap %0" : "=r" (x) : "0" (x));
return x; return x;

1
test/.gitignore vendored
View file

@ -43,3 +43,4 @@ mp2tomp1
mp2toavi mp2toavi
mp1tomp1 mp1tomp1
pipetest pipetest
mp3tovorbis