Commit e82dbed5 authored by michael's avatar michael

Make the selftesting code use and compileable.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14433 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9ec9b022
...@@ -28,9 +28,7 @@ see http://en.wikipedia.org/wiki/Mersenne_twister for an explanation of this alg ...@@ -28,9 +28,7 @@ see http://en.wikipedia.org/wiki/Mersenne_twister for an explanation of this alg
#include <stdio.h> #include <stdio.h>
#include "random.h" #include "random.h"
//#define DEBUG #ifdef TEST
#ifdef DEBUG
#include "common.h" #include "common.h"
#include "log.h" #include "log.h"
#endif #endif
...@@ -81,8 +79,8 @@ void av_random_generate_untempered_numbers(AVRandomState *state) ...@@ -81,8 +79,8 @@ void av_random_generate_untempered_numbers(AVRandomState *state)
state->index = 0; state->index = 0;
} }
#ifdef DEBUG #ifdef TEST
void av_benchmark_random(void) void main(void)
{ {
int x=0; int x=0;
int i, j; int i, j;
......
...@@ -63,7 +63,4 @@ static inline double av_random_real1(AVRandomState *state) ...@@ -63,7 +63,4 @@ static inline double av_random_real1(AVRandomState *state)
return av_random(state) * (1.0 / 4294967296.0); return av_random(state) * (1.0 / 4294967296.0);
} }
// only available if DEBUG is defined in the .c file
void av_benchmark_random(void);
#endif /* FFMPEG_RANDOM_H */ #endif /* FFMPEG_RANDOM_H */
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