Mercurial > hg > CbC > CbC_gcc
diff libquadmath/math/modfq.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/libquadmath/math/modfq.c Thu Oct 25 07:37:49 2018 +0900 +++ b/libquadmath/math/modfq.c Thu Feb 13 11:34:05 2020 +0900 @@ -1,4 +1,4 @@ -/* modfq.c -- __float128 version of s_modf.c. +/* s_modfl.c -- long double version of s_modf.c. * Conversion to IEEE quad long double by Jakub Jelinek, jj@ultra.linux.cz. */ @@ -13,12 +13,25 @@ * ==================================================== */ +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: $"; +#endif + +/* + * modfq(long double x, long double *iptr) + * return fraction part of x, and return x's integral part in *iptr. + * Method: + * Bit twiddling. + * + * Exception: + * No exception. + */ + #include "quadmath-imp.h" static const __float128 one = 1.0; -__float128 -modfq (__float128 x, __float128 *iptr) +__float128 modfq(__float128 x, __float128 *iptr) { int64_t i0,i1,j0; uint64_t i;