grischka
d019586378
win32/include/math.h: rint/trunc: pop fp stack
...
... in order to avoid fp stack overflow (see test below).
#include <math.h>
#include <stdio.h>
int main()
{
printf("%f %f %f %f\n", trunc(1.2), rint(1.2), trunc(1.2), rint(1.2));
printf("%f %f %f %f\n", trunc(1.2), rint(1.2), trunc(1.2), rint(1.2));
printf("%f %f %f %f\n", trunc(1.2), rint(1.2), trunc(1.2), rintl(1.2));
}
Also in rintl:
- 'long double' is not a ten-byte float on windows.
2020-04-11 21:45:57 +02:00
..
2009-07-18 22:06:37 +02:00
2018-06-01 12:52:01 +02:00
2017-07-26 13:07:14 +01:00
2019-07-14 22:46:19 +02:00
2019-07-14 22:46:19 +02:00
2020-01-14 07:41:58 +01:00
2017-09-24 18:03:26 -07:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2013-02-17 00:48:51 +01:00
2009-07-18 22:06:37 +02:00
2019-01-13 10:24:50 +01:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2016-06-19 14:44:18 +03:00
2020-04-11 21:45:57 +02:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2014-04-12 00:09:57 -04:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2017-09-24 18:03:26 -07:00
2013-02-17 00:48:51 +01:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2009-07-18 22:06:37 +02:00
2011-07-11 18:44:47 +02:00
2019-06-18 14:39:54 +02:00
2009-07-18 22:06:37 +02:00
2017-09-24 18:03:26 -07:00
2016-06-19 14:44:07 +03:00
2009-07-18 22:06:37 +02:00