diff options
author | Marius Strobl <marius@FreeBSD.org> | 2006-12-24 22:24:39 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2006-12-24 22:24:39 +0000 |
commit | 63067c1af8313ad937df961bb59c8093dc2f9ffa (patch) | |
tree | f75cc357ac1ff28b00dd251a2a8f61eca5c3ada6 | |
parent | b9716d687991faafe9172bd2d6726567034441f4 (diff) | |
download | src-63067c1af8313ad937df961bb59c8093dc2f9ffa.tar.gz src-63067c1af8313ad937df961bb59c8093dc2f9ffa.zip |
Notes
-rw-r--r-- | lib/libc/sparc64/fpu/fpu_implode.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/libc/sparc64/fpu/fpu_implode.c b/lib/libc/sparc64/fpu/fpu_implode.c index 2c3475ee52b7..a5b381730f30 100644 --- a/lib/libc/sparc64/fpu/fpu_implode.c +++ b/lib/libc/sparc64/fpu/fpu_implode.c @@ -259,14 +259,15 @@ __fpu_ftox(fe, fp, res) case FPC_NUM: /* - * If exp >= 2^64, overflow. Otherwise shift value right - * into last mantissa word (this will not exceed 0xffffffffffffffff), - * shifting any guard and round bits out into the sticky - * bit. Then ``round'' towards zero, i.e., just set an - * inexact exception if sticky is set (see round()). - * If the result is > 0x8000000000000000, or is positive and equals - * 0x8000000000000000, overflow; otherwise the last fraction word - * is the result. + * If exp >= 2^64, overflow. Otherwise shift value + * right into last mantissa word (this will not exceed + * 0xffffffffffffffff), shifting any guard and round + * bits out into the sticky bit. Then ``round'' towards + * zero, i.e., just set an inexact exception if sticky + * is set (see round()). + * If the result is > 0x8000000000000000, or is positive + * and equals 0x8000000000000000, overflow; otherwise + * the last fraction word is the result. */ if ((exp = fp->fp_exp) >= 64) break; @@ -277,7 +278,7 @@ __fpu_ftox(fe, fp, res) if (i >= ((u_int64_t)0x8000000000000000LL + sign)) break; if (sign) - i = -1; + i = -i; res[1] = (int)i; return (i >> 32); |