Commit b7c3b444 authored by Eric Petit's avatar Eric Petit

configure: ooops, restored -g

 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
parent ecbf942b
......@@ -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
......
#! /bin/sh
CC="gcc"
CFLAGS="-Wall -I. -O4 -funroll-loops -D__X264__"
CFLAGS="-g -Wall -I. -O4 -funroll-loops -D__X264__"
LDFLAGS=""
AS="nasm"
......
......@@ -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
......
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment