diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-09-09 22:53:27 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-09-09 22:53:27 +0000 |
commit | 3a767b69fdb767a7a154a4840dfcf06ce5c5c48b (patch) | |
tree | dd5f16dc838f741273509b95067e40cdffd0d98e /newlib/libc/machine/powerpc/strtoufix64.c | |
parent | 84154fcc00877205647c2a318a0bf7547520c498 (diff) | |
download | cygnal-3a767b69fdb767a7a154a4840dfcf06ce5c5c48b.tar.gz cygnal-3a767b69fdb767a7a154a4840dfcf06ce5c5c48b.tar.bz2 cygnal-3a767b69fdb767a7a154a4840dfcf06ce5c5c48b.zip |
2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
* libc/machine/powerpc/fix64.h: Fix typo for _simdldcheck
prototype.
* libc/machine/powerpc/simdldtoa.c: Remove prototype for
_simdldcheck(). Also add unsigned cast for index variable in
for loop using sizeof operators.
* libc/machine/powerpc/strtoufix32.c: Remove unused variable.
* libc/machine/powerpc/strtosfix64.c: Fix call to _simdldcheck.
* libc/machine/powerpc/strtoufix64.c (_strtoufix64_r): Ditto
plus fix shift calculation for determining if there is a
carry from word2.
Diffstat (limited to 'newlib/libc/machine/powerpc/strtoufix64.c')
-rw-r--r-- | newlib/libc/machine/powerpc/strtoufix64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/machine/powerpc/strtoufix64.c b/newlib/libc/machine/powerpc/strtoufix64.c index 47a7984e4..539f953a4 100644 --- a/newlib/libc/machine/powerpc/strtoufix64.c +++ b/newlib/libc/machine/powerpc/strtoufix64.c @@ -27,7 +27,7 @@ _DEFUN (_strtoufix64_r, (rptr, nptr, endptr), _simdstrtold ((char *)nptr, endptr, &ldbl); /* treat NAN as domain error, +/- infinity as saturation */ - ld_type = _simdldcheck (&ldbl.ld); + ld_type = _simdldcheck (&ldbl); if (ld_type != 0) { if (ld_type == 1) @@ -86,7 +86,7 @@ _DEFUN (_strtoufix64_r, (rptr, nptr, endptr), { if (Ebits < 32) { - result = tmp + ((word2(ldbl) & (1 << (64 - Ebits - 1))) != 0); + result = tmp + ((word2(ldbl) & (1 << (32 - Ebits - 1))) != 0); /* if rounding causes carry, then saturation has occurred */ if (result < tmp) { |