removal of nasm dependency
authorDavid Schleef <ds@schleef.org>
Fri, 25 Oct 2002 19:38:15 +0000 (19:38 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 25 Oct 2002 19:38:15 +0000 (19:38 +0000)
Original commit message from CVS:
removal of nasm dependency

tests/bufspeed/Makefile.am
tests/bufspeed/gstmempool.c

index a826930..5b2ebf4 100644 (file)
@@ -1,10 +1,5 @@
-if HAVE_NASM
-TEST1=test1
-else
-TEST1=
-endif
 
-noinst_PROGRAMS = $(TEST1) test2
+noinst_PROGRAMS = test1 test2
 
 test1_SOURCES = test1.c $(top_srcdir)/gst/gstbuffer.c gstmempool.c
 
index 5664b70..da4542d 100644 (file)
@@ -123,7 +123,7 @@ gst_mem_pool_alloc (GstMemPool *mem_pool)
   g_return_val_if_fail (mem_pool != NULL, NULL);
 
 again:
-#ifdef USE_ASM
+#if defined(USE_ASM) && defined(HAVE_CPU_I386)
   __asm__ __volatile__ ("  testl %%eax, %%eax          \n\t"
                        "  jz 20f                       \n"
                        "10:                            \t"
@@ -178,7 +178,7 @@ gst_mem_pool_free (GstMemPool *mem_pool, gpointer mem)
 
   pool = GST_MEM_POOL_LINK (mem);
 
-#ifdef USE_ASM
+#if defined(USE_ASM) && defined(HAVE_CPU_I386)
   __asm__ __volatile__ ( "1:                           \t"
                        "  movl %2, (%1)                \n"
                        POOL_LOCK "cmpxchg %1, %0       \n\t"