Skip to content

Commit

Permalink
Fix excessive ULP for y1_upward (0x2p+0) in test-float and test-ifloat.
Browse files Browse the repository at this point in the history
	* sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
	to occur in round to nearest mode when |x| >= 2.0
  • Loading branch information
David S. Miller committed Jun 1, 2014
1 parent f0712b5 commit 30f3d07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2014-05-31 David S. Miller <davem@davemloft.net>

* sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
to occur in round to nearest mode when |x| >= 2.0

2014-05-30 Richard Henderson <rth@twiddle.net>

* sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
Expand Down
1 change: 1 addition & 0 deletions sysdeps/ieee754/flt-32/e_j1f.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ __ieee754_y1f(float x)
return -HUGE_VALF+x; /* -inf and overflow exception. */
if(__builtin_expect(hx<0, 0)) return zero/(zero*x);
if(ix >= 0x40000000) { /* |x| >= 2.0 */
SET_RESTORE_ROUNDF (FE_TONEAREST);
__sincosf (x, &s, &c);
ss = -s-c;
cc = s-c;
Expand Down

0 comments on commit 30f3d07

Please sign in to comment.