diff options
Diffstat (limited to 'sysdeps/ieee754/ldbl-128/s_modfl.c')
-rw-r--r-- | sysdeps/ieee754/ldbl-128/s_modfl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/ieee754/ldbl-128/s_modfl.c b/sysdeps/ieee754/ldbl-128/s_modfl.c index 597a5c9a0c..2d0a2d739f 100644 --- a/sysdeps/ieee754/ldbl-128/s_modfl.c +++ b/sysdeps/ieee754/ldbl-128/s_modfl.c @@ -29,13 +29,14 @@ static char rcsid[] = "$NetBSD: $"; #include <math.h> #include <math_private.h> +#include <libm-alias-ldouble.h> -static const long double one = 1.0; +static const _Float128 one = 1.0; -long double __modfl(long double x, long double *iptr) +_Float128 __modfl(_Float128 x, _Float128 *iptr) { int64_t i0,i1,j0; - u_int64_t i; + uint64_t i; GET_LDOUBLE_WORDS64(i0,i1,x); j0 = ((i0>>48)&0x7fff)-0x3fff; /* exponent of x */ if(j0<48) { /* integer part in high x */ @@ -76,4 +77,4 @@ long double __modfl(long double x, long double *iptr) } } } -weak_alias (__modfl, modfl) +libm_alias_ldouble (__modf, modf) |