OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bb12e7
)
Add st, ld, while examples/tests.
author
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Mon, 1 Nov 2010 09:34:18 +0000
(09:34 +0000)
committer
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Mon, 1 Nov 2010 09:34:18 +0000
(09:34 +0000)
Originally committed as revision 25625 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/eval.c
patch
|
blob
|
history
diff --git
a/libavutil/eval.c
b/libavutil/eval.c
index
6b5f39c
..
2799160
100644
(file)
--- 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
};