diff options
author | jbeulich <jbeulich@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-05 08:34:25 +0000 |
---|---|---|
committer | jbeulich <jbeulich@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-05 08:34:25 +0000 |
commit | 341a558ab0759a6692c5c3e88a2ebc63be7ade1f (patch) | |
tree | a6a92f5f670f5cf070398dd96e6d1070f3691f3a /gcc/libgcc2.c | |
parent | d65f11d8c4dcafbd346b9d2be7e4d3bb01ad1873 (diff) | |
download | gcc-341a558ab0759a6692c5c3e88a2ebc63be7ade1f.tar.gz |
2005-12-05 Jan Beulich <jbeulich@novell.com>
* libgcc2.c (__popcountSI2): Don't use wide type for iterator and
result.
(__popcountDI2): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108046 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 94f4b30006a..d6bd8723458 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]; |