Skip to content

Commit

Permalink
* sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
Browse files Browse the repository at this point in the history
	__nextafter instead of nextafter to avoid local PLT.
  • Loading branch information
Ulrich Drepper committed Apr 12, 2008
1 parent c3a0ead commit 3b6d574
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2008-04-11 Ulrich Drepper <drepper@redhat.com>

* sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
__nextafter instead of nextafter to avoid local PLT.
* sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
* sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.

Expand Down
8 changes: 4 additions & 4 deletions sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Round to int long double floating-point values without raising inexact.
IBM extended format long double version.
Copyright (C) 2006 Free Software Foundation, Inc.
Copyright (C) 2006, 2008 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -84,8 +84,8 @@ __nearbyintl (x)
{
/* Else the high double is pre rounded and we need to
adjust for that. */
tau = nextafter (u.dd[0], 0.0);

tau = __nextafter (u.dd[0], 0.0);
tau = (u.dd[0] - tau) * 2.0;
high = u.dd[0] - tau;
low = u.dd[1] + tau;
Expand All @@ -106,7 +106,7 @@ __nearbyintl (x)
{
/* Else the high double is pre rounded and we need to
adjust for that. */
tau = nextafter (u.dd[0], 0.0);
tau = __nextafter (u.dd[0], 0.0);
tau = (u.dd[0] - tau) * 2.0;
high = u.dd[0] - tau;
low = u.dd[1] + tau;
Expand Down

0 comments on commit 3b6d574

Please sign in to comment.