mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-26 03:50:07 +08:00
3b84e61ead
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
|
||
---|---|---|
.. | ||
alloca86_64-bt.S | ||
alloca86_64.S | ||
alloca86-bt.S | ||
alloca86.S | ||
alloca-arm.S | ||
armeabi.c | ||
bcheck.c | ||
lib-arm64.c | ||
libtcc1.c | ||
Makefile |