diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-01 09:34:18 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-01 09:34:18 +0000 |
commit | 2b59fbe9b1e3721ba0785fbed9fc62a8049a6830 (patch) | |
tree | 7929e6c0f7dda140889d6c36ad0a5ca26977aad5 /libavutil | |
parent | 8bb12e71aff29e5bd27d1ad32deb5c30e63c76ae (diff) | |
download | ffmpeg-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.c | 8 |
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 }; |