mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-27 21:23:03 +00:00
* src/closure.c (closure): No longer optimize the special case
where all the bits of `ruleset[r]' are set to 0, to make the code clearer.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2001-11-28 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/closure.c (closure): No longer optimize the special case
|
||||
where all the bits of `ruleset[r]' are set to 0, to make the code
|
||||
clearer.
|
||||
|
||||
|
||||
2001-11-28 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/closure.c (closure): `r' and `c' are new variables, used to
|
||||
|
||||
@@ -272,12 +272,6 @@ closure (short *core, int n)
|
||||
itemsetsize = 0;
|
||||
c = 0;
|
||||
for (r = 0; r < rulesetsize; ++r)
|
||||
{
|
||||
if (ruleset[r] == 0)
|
||||
{
|
||||
ruleno += BITS_PER_WORD;
|
||||
}
|
||||
else
|
||||
{
|
||||
int b;
|
||||
|
||||
@@ -299,7 +293,6 @@ closure (short *core, int n)
|
||||
ruleno++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
while (c < n)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user