aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-01 09:34:18 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-01 09:34:18 +0000
commit2b59fbe9b1e3721ba0785fbed9fc62a8049a6830 (patch)
tree7929e6c0f7dda140889d6c36ad0a5ca26977aad5 /libavutil
parent8bb12e71aff29e5bd27d1ad32deb5c30e63c76ae (diff)
downloadffmpeg-2b59fbe9b1e3721ba0785fbed9fc62a8049a6830.tar.gz
Add st, ld, while examples/tests.
Originally committed as revision 25625 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/eval.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/eval.c b/libavutil/eval.c
index 6b5f39c1ce..2799160094 100644
--- a/libavutil/eval.c
+++ b/libavutil/eval.c
@@ -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
};