Commit cbf9e1b7 authored by diego's avatar diego

Fix seek_test compilation for out-of-tree builds.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9135 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fb94e4d9
...@@ -73,11 +73,8 @@ asynth1.sw: audiogen$(EXESUF) ...@@ -73,11 +73,8 @@ asynth1.sw: audiogen$(EXESUF)
%$(EXESUF): %.c %$(EXESUF): %.c
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
LIBAV = ../libavformat/libavformat.a ../libavcodec/libavcodec.a ../libavutil/libavutil.a seek_test$(EXESUF): seek_test.c
$(CC) $(LDFLAGS) $(CFLAGS) -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -o $@ $< $(BUILD_ROOT)/libavformat/libavformat.a $(BUILD_ROOT)/libavcodec/libavcodec.a $(BUILD_ROOT)/libavutil/libavutil.a $(EXTRALIBS)
#FIXME cleanup shit below
seek_test$(EXESUF): seek_test.c $(LIBAV)
$(CC) $(LDFLAGS) $(CFLAGS) -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -o $@ $< $(SRC_PATH)/libavformat/libavformat.a $(SRC_PATH)/libavcodec/libavcodec.a $(SRC_PATH)/libavutil/libavutil.a $(EXTRALIBS)
distclean clean: distclean clean:
rm -rf vsynth1 vsynth2 data asynth1.sw *~ rm -rf vsynth1 vsynth2 data asynth1.sw *~
......
...@@ -49,19 +49,7 @@ uint64_t exp16_table[21]={ ...@@ -49,19 +49,7 @@ uint64_t exp16_table[21]={
195360063, 195360063,
582360139072LL, 582360139072LL,
}; };
#if 1
// 16.16 fixpoint exp()
static unsigned int exp16(unsigned int a){
int i;
int out= 1<<16;
for(i=19;i>=0;i--){
if(a&(1<<i))
out= (out*exp16_table[i] + (1<<15))>>16;
}
return out;
}
// 16.16 fixpoint log() // 16.16 fixpoint log()
static int64_t log16(uint64_t a){ static int64_t log16(uint64_t a){
int i; int i;
...@@ -80,7 +68,6 @@ static int64_t log16(uint64_t a){ ...@@ -80,7 +68,6 @@ static int64_t log16(uint64_t a){
return out; return out;
} }
#endif
static uint64_t int_sqrt(uint64_t a) static uint64_t int_sqrt(uint64_t a)
{ {
uint64_t ret=0; uint64_t ret=0;
......
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