summaryrefslogtreecommitdiff
path: root/libquadmath/math/roundq.c
diff options
context:
space:
mode:
Diffstat (limited to 'libquadmath/math/roundq.c')
-rw-r--r--libquadmath/math/roundq.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libquadmath/math/roundq.c b/libquadmath/math/roundq.c
index b48366315f4..5d6d28b3771 100644
--- a/libquadmath/math/roundq.c
+++ b/libquadmath/math/roundq.c
@@ -1,5 +1,5 @@
-/* Round __float128 to integer away from zero.
- Copyright (C) 1997-2017 Free Software Foundation, Inc.
+/* Round long double to integer away from zero.
+ Copyright (C) 1997-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997 and
Jakub Jelinek <jj@ultra.linux.cz>, 1999.
@@ -15,9 +15,10 @@
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- 02111-1307 USA. */
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#define NO_MATH_REDIRECT
#include "quadmath-imp.h"
@@ -44,6 +45,7 @@ roundq (__float128 x)
if (((i0 & i) | i1) == 0)
/* X is integral. */
return x;
+
i0 += 0x0000800000000000LL >> j0;
i0 &= ~i;
i1 = 0;