[FFmpeg-cvslog] r14433 - in trunk/libavutil: random.c random.h
michael
subversion
Sun Jul 27 22:50:24 CEST 2008
Author: michael
Date: Sun Jul 27 22:50:24 2008
New Revision: 14433
Log:
Make the selftesting code use and compileable.
Modified:
trunk/libavutil/random.c
trunk/libavutil/random.h
Modified: trunk/libavutil/random.c
==============================================================================
--- trunk/libavutil/random.c (original)
+++ trunk/libavutil/random.c Sun Jul 27 22:50:24 2008
@@ -28,9 +28,7 @@ see http://en.wikipedia.org/wiki/Mersenn
#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_numbe
state->index = 0;
}
-#ifdef DEBUG
-void av_benchmark_random(void)
+#ifdef TEST
+void main(void)
{
int x=0;
int i, j;
Modified: trunk/libavutil/random.h
==============================================================================
--- trunk/libavutil/random.h (original)
+++ trunk/libavutil/random.h Sun Jul 27 22:50:24 2008
@@ -63,7 +63,4 @@ static inline double av_random_real1(AVR
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 */
More information about the ffmpeg-cvslog
mailing list