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