diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-10-09 15:37:39 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-10-09 15:37:39 +0000 |
commit | 0a7fef01597c934b6f6fd59eee28f30c4674670a (patch) | |
tree | 144022261eb1dc80828ff273e7011d0b467d41b4 /sysdeps/ieee754 | |
parent | e340a2a2e21c455c57bb19d7495f00f44b666b63 (diff) | |
download | glibc-0a7fef01597c934b6f6fd59eee28f30c4674670a.tar.gz glibc-0a7fef01597c934b6f6fd59eee28f30c4674670a.tar.xz glibc-0a7fef01597c934b6f6fd59eee28f30c4674670a.zip |
Update.
2000-10-09 Jakub Jelinek <jakub@redhat.com> * 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.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r-- | sysdeps/ieee754/ldbl-128/s_nexttoward.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-96/s_nexttoward.c | 2 |
2 files changed, 2 insertions, 2 deletions
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: |