diff options
Diffstat (limited to 'winsup/mingw/mingwex/rint.c')
-rw-r--r-- | winsup/mingw/mingwex/rint.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/mingw/mingwex/rint.c b/winsup/mingw/mingwex/rint.c new file mode 100644 index 000000000..3198f4b26 --- /dev/null +++ b/winsup/mingw/mingwex/rint.c @@ -0,0 +1,6 @@ +#include <math.h> +double rint (double x){ + double retval; + __asm__ ("frndint;" : "=t" (retval) : "0" (x)); + return retval; +} |