changeset 3730:aae4aed137ea libavcodec

K prefix add SI prefix selftest
author michael
date Sun, 17 Sep 2006 10:22:01 +0000
parents 58483364f021
children 8b8773577dd9
files eval.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/eval.c	Sun Sep 17 08:52:41 2006 +0000
+++ b/eval.c	Sun Sep 17 10:22:01 2006 +0000
@@ -77,6 +77,7 @@
     ['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 @@
 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