diff options
| author | Marius Strobl <marius@FreeBSD.org> | 2006-12-28 18:26:02 +0000 |
|---|---|---|
| committer | Marius Strobl <marius@FreeBSD.org> | 2006-12-28 18:26:02 +0000 |
| commit | ea7aa57e3d6e51d4dbdbc3d4037e6fdcde9ac2ff (patch) | |
| tree | 440de0fb65b37fe096753ed16c7685fad4e83cbe | |
| parent | c913953e47bbe8485868ee06a00f9a6f640149cb (diff) | |
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); |
