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