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