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 +- sysdeps/ieee754/ldbl-96/s_nexttoward.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps') 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 */ diff --git a/sysdeps/ieee754/ldbl-96/s_nexttoward.c b/sysdeps/ieee754/ldbl-96/s_nexttoward.c index 941383e281..9df393a7bd 100644 --- a/sysdeps/ieee754/ldbl-96/s_nexttoward.c +++ b/sysdeps/ieee754/ldbl-96/s_nexttoward.c @@ -19,7 +19,7 @@ static char rcsid[] = "$NetBSD: $"; #endif /* IEEE functions - * nextafterx(x,y) + * nexttoward(x,y) * return the next machine floating-point number of x in the * direction toward y. * Special cases: -- cgit 1.4.1