* genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
of size of unsigned.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53813
138bc75d-0d04-0410-961f-
82ee72b054a4
+2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
+
+ * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
+ of size of unsigned.
+
2002-05-23 Richard Henderson <rth@redhat.com>
* configure.in (HAVE_AS_TLS): New test.
if (sizeof (set_el_t) <= sizeof (unsigned))
return hash_value;
result = 0;
- for (i = sizeof (set_el_t); i > 0; i -= sizeof (unsigned))
+ for (i = sizeof (set_el_t); i > 0; i -= sizeof (unsigned) - 1)
{
result += (unsigned) hash_value;
- hash_value >>= sizeof (unsigned) * CHAR_BIT;
+ hash_value >>= (sizeof (unsigned) - 1) * CHAR_BIT;
}
return result;
}