[FFmpeg-cvslog] r25625 - trunk/libavutil/eval.c
stefano
subversion
Mon Nov 1 10:34:18 CET 2010
Author: stefano
Date: Mon Nov 1 10:34:18 2010
New Revision: 25625
Log:
Add st, ld, while examples/tests.
Modified:
trunk/libavutil/eval.c
Modified: trunk/libavutil/eval.c
==============================================================================
--- trunk/libavutil/eval.c Mon Nov 1 10:34:15 2010 (r25624)
+++ trunk/libavutil/eval.c Mon Nov 1 10:34:18 2010 (r25625)
@@ -563,6 +563,14 @@ int main(void)
"13k + 12f - foo(1, 2)",
"1gi",
"1Gi",
+ "st(0, 123)",
+ "st(1, 123); ld(1)",
+ /* compute 1+2+...+N */
+ "st(0, 1); while(lte(ld(0), 100), st(1, ld(1)+ld(0));st(0, ld(0)+1)); ld(1)",
+ /* compute Fib(N) */
+ "st(1, 1); st(2, 2); st(0, 1); while(lte(ld(0),10), st(3, ld(1)+ld(2)); st(1, ld(2)); st(2, ld(3)); st(0, ld(0)+1)); ld(3)",
+ "while(0, 10)",
+ "st(0, 1); while(lte(ld(0),100), st(1, ld(1)+ld(0)); st(0, ld(0)+1))",
NULL
};
More information about the ffmpeg-cvslog
mailing list