From 0a7fef01597c934b6f6fd59eee28f30c4674670a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 9 Oct 2000 15:37:39 +0000 Subject: Update. 2000-10-09 Jakub Jelinek * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): If x == y, return y not x. * manual/arith.texi (nextafter): Document it. * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Fix a comment. --- sysdeps/ieee754/ldbl-128/s_nexttoward.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/ieee754/ldbl-128/s_nexttoward.c') diff --git a/sysdeps/ieee754/ldbl-128/s_nexttoward.c b/sysdeps/ieee754/ldbl-128/s_nexttoward.c index f121be2fac..2c654fb973 100644 --- a/sysdeps/ieee754/ldbl-128/s_nexttoward.c +++ b/sysdeps/ieee754/ldbl-128/s_nexttoward.c @@ -50,7 +50,7 @@ static char rcsid[] = "$NetBSD: $"; ((iy>=0x7fff000000000000LL)&&((iy-0x7fff000000000000LL)|ly)!=0)) /* y is nan */ return x+y; - if((long double) x==y) return x; /* x=y, return x */ + if((long double) x==y) return y; /* x=y, return y */ if((ix|lx)==0) { /* x == 0 */ double x2; INSERT_WORDS(x,(u_int32_t)((hy>>32)&0x80000000),1);/* return +-minsub */ -- cgit v1.2.3