diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-28 00:50:24 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-28 00:50:24 +0400 |
commit | b6ff078b7bbb0700e95751c3877af8887173f237 (patch) | |
tree | 9589a1110929f16cb120a426e0f137cf0ec38aae /libavutil | |
parent | 3df136d438ae468141846f08da330fef9bb46d45 (diff) |
Make the selftesting code use and compileable.
Originally committed as revision 14433 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/random.c | 8 | ||||
-rw-r--r-- | libavutil/random.h | 3 |
2 files changed, 3 insertions, 8 deletions
diff --git a/libavutil/random.c b/libavutil/random.c index c3e71e699c..251eb1f270 100644 --- a/libavutil/random.c +++ b/libavutil/random.c @@ -28,9 +28,7 @@ see http://en.wikipedia.org/wiki/Mersenne_twister for an explanation of this alg #include <stdio.h> #include "random.h" -//#define DEBUG - -#ifdef DEBUG +#ifdef TEST #include "common.h" #include "log.h" #endif @@ -81,8 +79,8 @@ void av_random_generate_untempered_numbers(AVRandomState *state) state->index = 0; } -#ifdef DEBUG -void av_benchmark_random(void) +#ifdef TEST +void main(void) { int x=0; int i, j; diff --git a/libavutil/random.h b/libavutil/random.h index 4d00d7e00f..25eaf589da 100644 --- a/libavutil/random.h +++ b/libavutil/random.h @@ -63,7 +63,4 @@ static inline double av_random_real1(AVRandomState *state) 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 */ |