Revert "partial revert of the commit 4ad186c5ef61"

There seems nothing wrong.  With

    int t1 = 176401255;
    float f = 0.25;
    int t2 = t1 * f; // 176401255 * 0.25 = 44100313.75

according to the arithmetic conversion rules, the number
176401255 needs to be converted to float, and the compiler
can choose either the nearest higher or nearest lower
representable number "in an implementation-defined manner".

Which may be 176401248 or 176401264.  So as result both
44100312 and 44100313 are correct.

This reverts commit 664c19ad5e.
This commit is contained in:
grischka
2016-10-14 11:23:48 +02:00
parent 85fca9e924
commit 3b84e61ead
3 changed files with 0 additions and 23 deletions

View File

@ -243,7 +243,6 @@
DEF(TOK___fixsfdi, "__fixsfdi")
DEF(TOK___fixdfdi, "__fixdfdi")
DEF(TOK___fixxfdi, "__fixxfdi")
DEF(TOK___tcc_cvt_ftol, "__tcc_cvt_ftol")
#endif
#if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64