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