win32/include/math.h: rint/trunc: pop fp stack
commitd019586378eb1a7adf033f0f5fd994278f903301
authorgrischka <grischka>
Mon, 24 Feb 2020 14:48:01 +0000 (24 15:48 +0100)
committergrischka <grischka>
Sat, 11 Apr 2020 19:45:57 +0000 (11 21:45 +0200)
treebf947310c31c68349ab36a220dd2ad51dc5341ac
parent024214af2d99a1d9f01b89d9917b8559c01889f7
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.
win32/include/math.h