mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
use memset to zero a bitset
This commit is contained in:
parent
c56148e7f9
commit
eb26f0cded
@ -297,7 +297,7 @@ bsequal(BSet *a, BSet *b)
|
||||
void
|
||||
bszero(BSet *bs)
|
||||
{
|
||||
bsdiff(bs, bs);
|
||||
memset(bs->t, 0, bs->nt * sizeof bs->t[0]);
|
||||
}
|
||||
|
||||
/* iterates on a bitset, use as follows
|
||||
|
||||
Loading…
Reference in New Issue
Block a user