Mercurial > hg > CbC > CbC_gcc
diff libquadmath/math/floorq.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/floorq.c Thu Oct 25 07:37:49 2018 +0900 +++ b/libquadmath/math/floorq.c Thu Feb 13 11:34:05 2020 +0900 @@ -1,4 +1,4 @@ -/* floorq.c -- __float128 version of s_floor.c. +/* s_floorl.c -- long double version of s_floor.c. * Conversion to IEEE quad long double by Jakub Jelinek, jj@ultra.linux.cz. */ @@ -13,10 +13,22 @@ * ==================================================== */ +#if defined(LIBM_SCCS) && !defined(lint) +static char rcsid[] = "$NetBSD: $"; +#endif + +/* + * floorq(x) + * Return x rounded toward -inf to integral value + * Method: + * Bit twiddling. + */ + +#define NO_MATH_REDIRECT + #include "quadmath-imp.h" -__float128 -floorq (__float128 x) +__float128 floorq(__float128 x) { int64_t i0,i1,j0; uint64_t i,j;