From 3a767b69fdb767a7a154a4840dfcf06ce5c5c48b Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 9 Sep 2003 22:53:27 +0000 Subject: 2003-09-09 Jeff Johnston * 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. --- newlib/libc/machine/powerpc/simdldtoa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'newlib/libc/machine/powerpc/simdldtoa.c') diff --git a/newlib/libc/machine/powerpc/simdldtoa.c b/newlib/libc/machine/powerpc/simdldtoa.c index 71ff12143..9a90e64e2 100644 --- a/newlib/libc/machine/powerpc/simdldtoa.c +++ b/newlib/libc/machine/powerpc/simdldtoa.c @@ -16,7 +16,6 @@ /* linux name: long double _IO_strtold (char *, char **); */ void _simdstrtold (char *, char **, LONG_DOUBLE_UNION *); char * _simdldtoa_r (struct _reent *, LONG_DOUBLE_UNION *, int, int, int *, int *, char **); -int _simdldcheck (LONG_DOUBLE_UNION *); /* Number of 16 bit words in external x type format */ #define NE 10 @@ -2752,7 +2751,7 @@ if( mode == 0 ) /* we want to have enough space to hold the formatted result */ i = ndigits + (mode == 3 ? (MAX_EXP_DIGITS + 1) : 1); j = sizeof (__ULong); -for (_REENT_MP_RESULT_K(ptr) = 0; sizeof (_Bigint) - sizeof (__ULong) + j <= i; j <<= 1) +for (_REENT_MP_RESULT_K(ptr) = 0; sizeof (_Bigint) - sizeof (__ULong) + j <= (unsigned)i; j <<= 1) _REENT_MP_RESULT_K(ptr)++; _REENT_MP_RESULT(ptr) = Balloc (ptr, _REENT_MP_RESULT_K(ptr)); outstr = (char *)_REENT_MP_RESULT(ptr); -- cgit v1.2.3