Add incomplet long double math support to libmingwex.a
This commit is contained in:
15
winsup/mingw/mingwex/math/atan2f.c
Normal file
15
winsup/mingw/mingwex/math/atan2f.c
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Written by J.T. Conklin <jtc@netbsd.org>.
|
||||
* Public domain.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
|
||||
float
|
||||
atan2f (float y, float x)
|
||||
{
|
||||
float res;
|
||||
asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)");
|
||||
return res;
|
||||
}
|
Reference in New Issue
Block a user