diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-09-17 10:22:01 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-09-17 10:22:01 +0000 |
commit | 7eb1042cbd9c8b5b7b2713b6acf9f33d0c004b2a (patch) | |
tree | 7d5453476bcd128ad7ee506d29260a091918ff4d /libavcodec/eval.c | |
parent | aeb20f7f9d37f38cd7df94158b19999a13ba5a12 (diff) | |
download | ffmpeg-7eb1042cbd9c8b5b7b2713b6acf9f33d0c004b2a.tar.gz |
K prefix
add SI prefix selftest
Originally committed as revision 6286 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/eval.c')
-rw-r--r-- | libavcodec/eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/eval.c b/libavcodec/eval.c index cf1b8c7409..7eb835fc47 100644 --- a/libavcodec/eval.c +++ b/libavcodec/eval.c @@ -77,6 +77,7 @@ static int8_t si_prefixes['z' - 'E' + 1]={ ['d'-'E']= - 1, ['h'-'E']= 2, ['k'-'E']= 3, + ['K'-'E']= 3, ['M'-'E']= 6, ['G'-'E']= 9, ['T'-'E']= 12, @@ -250,6 +251,7 @@ static const char *const_names[]={ main(){ int i; printf("%f == 12.7\n", ff_eval("1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)", const_values, const_names, NULL, NULL, NULL, NULL, NULL)); + printf("%f == 0.931322575\n", ff_eval("80G/80Gi", const_values, const_names, NULL, NULL, NULL, NULL, NULL)); for(i=0; i<1050; i++){ START_TIMER |