]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgcc2.c (__popcountSI2): Don't use wide type for iterator and result.
authorJan Beulich <jbeulich@novell.com>
Mon, 5 Dec 2005 08:34:25 +0000 (08:34 +0000)
committerJan Beulich <jbeulich@gcc.gnu.org>
Mon, 5 Dec 2005 08:34:25 +0000 (08:34 +0000)
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

gcc/ChangeLog
gcc/libgcc2.c

index 33b61fc3c525981bba3f559d4f581fc01d280b06..5ba337727900239211ef797598fbac2894e4cf77 100644 (file)
@@ -1,3 +1,9 @@
+2005-12-05  Jan Beulich  <jbeulich@novell.com>
+
+       * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
+       result.
+       (__popcountDI2): Likewise.
+
 2005-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        PR target/25166
index 94f4b30006abf625d6011b4e257c08f9fa6b3202..d6bd872345801e385ea3ebe098a4c891a917c8e0 100644 (file)
@@ -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];