Mercurial > hg > CbC > old > device
diff test/float.c @ 86:4d1275f8a5b5
*** empty log message ***
author | kono |
---|---|
date | Wed, 05 Mar 2003 16:17:44 +0900 |
parents | 3789aef7331d |
children | 1738f313f98b |
line wrap: on
line diff
--- a/test/float.c Wed Mar 05 13:43:52 2003 +0900 +++ b/test/float.c Wed Mar 05 16:17:44 2003 +0900 @@ -46,7 +46,7 @@ f = g = d = g = d = f; printf(" %d %g %f %g\n",i,d,f,g); - d = 4294967295.4234; f=4294967295.4234; + d = 4204967294.4234; f=4204967294.4234; u = d; d = u; u = f; @@ -133,11 +133,13 @@ printf("%d:%g\t",n++,f); printf("\n"); - g = g1++ - ++g1; - printf("%d:%g\t",n++,g); + g1 = g; + g1 = g1++ - ++g; + printf("%d:%g\t",n++,g1); - g = f1++ - ++f1; - printf("%d:%g\t",n++,g); + f1 = f; + f1 = f1++ - ++f; + printf("%d:%g\t",n++,f1); g = f+f; printf("%d:%g\t",n++,g); @@ -180,11 +182,14 @@ printf("%d:%g\t",n++,*pf); printf("\n"); - *pg = (*pg1)++ - ++(*pg1); - printf("%d:%g\t",n++,*pg); + *pg1 = *pg; + *pg1 = (*pg1)++ - ++(*pg); + printf("%d:%g\t",n++,*pg1); - *pg = (*pf1)++ - ++(*pf1); - printf("%d:%g\t",n++,*pg); + *pf1 = *pf; + *pf1 = (*pf1)++ - ++(*pf); + printf("%d:%g\t",n++,*pf1); + *pg = *pf+*pf; printf("%d:%g\t",n++,*pg);