mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
301 B
15 lines
301 B
#include "libm.h"
|
|
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
|
|
long double fabsl(long double x)
|
|
{
|
|
return fabs(x);
|
|
}
|
|
#elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
|
|
long double fabsl(long double x)
|
|
{
|
|
union ldshape u = {x};
|
|
|
|
u.bits.sign = 0;
|
|
return u.value;
|
|
}
|
|
#endif
|
|
|