Add incomplet long double math support to libmingwex.a
This commit is contained in:
14
winsup/mingw/mingwex/math/ldexpl.c
Normal file
14
winsup/mingw/mingwex/math/ldexpl.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <math.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
long double ldexpl(long double x, int expn)
|
||||
{
|
||||
if (isfinite (x) && x != 0.0L)
|
||||
{
|
||||
x = scalbnl (x , expn);
|
||||
if (!isfinite (x) || x == 0.0) errno = ERANGE;
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
Reference in New Issue
Block a user