]> git.videolan.org Git - x264.git/commitdiff
configure: ooops, restored -g
authorEric Petit <titer@videolan.org>
Mon, 11 Apr 2005 20:52:31 +0000 (20:52 +0000)
committerEric Petit <titer@videolan.org>
Mon, 11 Apr 2005 20:52:31 +0000 (20:52 +0000)
 ratecontrol.c: OS X has exp2f in -lmx
 checkasm: quick compile fix

git-svn-id: svn://svn.videolan.org/x264/trunk@194 df754926-b1dd-0310-bc7b-ec298dee348c

Makefile
configure
encoder/ratecontrol.c
testing/checkasm.c

index 09be4f206a62ed21fb9cb18903dc6cbc5dc3bc90..b4681fe4276cc0587477cdf49cb708c425b16a11 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ libx264.a: $(OBJS) $(OBJASM)
 x264: libx264.a x264.o
        $(CC) -o $@ x264.o libx264.a $(LDFLAGS)
 
-checkasm: testing/checkasm.c libx264.a
+checkasm: testing/checkasm.o libx264.a
        $(CC) -o $@ $< libx264.a $(LDFLAGS)
 
 %.o: %.asm
index 23535f0069732cf176910741be25310a49022dbb..c15bdd5f89eff8735c3fc22ded548e172eeb1f76 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 CC="gcc"
-CFLAGS="-Wall -I. -O4 -funroll-loops -D__X264__"
+CFLAGS="-g -Wall -I. -O4 -funroll-loops -D__X264__"
 LDFLAGS=""
 
 AS="nasm"
index d4525491d51f004668077e9c19266514bd8961ec..18f243cf7866085bfee376452e6a7d6cb0ee0a4a 100644 (file)
@@ -37,9 +37,6 @@
 #include "common/macroblock.h"
 #include "ratecontrol.h"
 
-#ifdef SYS_MACOSX
-#define exp2f(x) ( (float) exp2( (x) ) )
-#endif
 #if defined(SYS_FREEBSD) || defined(SYS_BEOS)
 #define exp2f(x) powf( 2, (x) )
 #endif
index 0d83c8e6603384a6f033e863445c92f018b9153e..641d82b9329efd87fb08d2eab28c6a877908467c 100644 (file)
@@ -239,6 +239,7 @@ static int check_dct()
 
 static int check_mc()
 {
+#if 0
     x264_mc_function_t mc_c[2] = {0};
     x264_mc_function_t mc_asm[2] = {0};
     uint8_t *src = &buf1[2*32+2];
@@ -302,6 +303,9 @@ static int check_mc()
         fprintf( stderr, " - mc chroma :           [FAILED]\n" );
     }
     return ret;
+#else
+    return 0;
+#endif
 }
 
 int main()