Add incomplet long double math support to libmingwex.a
This commit is contained in:
10
winsup/mingw/mingwex/math/lrintl.c
Normal file
10
winsup/mingw/mingwex/math/lrintl.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <math.h>
|
||||
|
||||
long lrintl (long double x)
|
||||
{
|
||||
long retval;
|
||||
__asm__ __volatile__ \
|
||||
("fistpl %0" : "=m" (retval) : "t" (x) : "st"); \
|
||||
return retval;
|
||||
}
|
||||
|
Reference in New Issue
Block a user