aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2005-12-05 08:34:25 +0000
committerJan Beulich <jbeulich@gcc.gnu.org>2005-12-05 08:34:25 +0000
commit4000debbd3c06e98c2d0c67fdf6372e35b1908f0 (patch)
treea6a92f5f670f5cf070398dd96e6d1070f3691f3a /gcc/libgcc2.c
parent9df6c3295b0b63040c21de3e54ac79969eb25a81 (diff)
downloadgcc-4000debbd3c06e98c2d0c67fdf6372e35b1908f0.zip
gcc-4000debbd3c06e98c2d0c67fdf6372e35b1908f0.tar.gz
gcc-4000debbd3c06e98c2d0c67fdf6372e35b1908f0.tar.bz2
libgcc2.c (__popcountSI2): Don't use wide type for iterator and result.
2005-12-05 Jan Beulich <jbeulich@novell.com> * libgcc2.c (__popcountSI2): Don't use wide type for iterator and result. (__popcountDI2): Likewise. From-SVN: r108046
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 94f4b30..d6bd872 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -744,7 +744,7 @@ const UQItype __popcount_tab[256] =
int
__popcountSI2 (UWtype x)
{
- UWtype i, ret = 0;
+ int i, ret = 0;
for (i = 0; i < W_TYPE_SIZE; i += 8)
ret += __popcount_tab[(x >> i) & 0xff];
@@ -758,7 +758,7 @@ __popcountSI2 (UWtype x)
int
__popcountDI2 (UDWtype x)
{
- UWtype i, ret = 0;
+ int i, ret = 0;
for (i = 0; i < 2*W_TYPE_SIZE; i += 8)
ret += __popcount_tab[(x >> i) & 0xff];