Commit 322c08f2 authored by Carl Shapiro's avatar Carl Shapiro

cmd/gc: remove unused bit vector comparison code

R=golang-dev, dave, iant
CC=golang-dev
https://golang.org/cl/9738045
parent a3e0002e
...@@ -78,18 +78,3 @@ bvisempty(Bvec *bv) ...@@ -78,18 +78,3 @@ bvisempty(Bvec *bv)
return 0; return 0;
return 1; return 1;
} }
int bvcmp(Bvec *bv1, Bvec *bv2)
{
int32 i;
if(bv1->n != bv2->n) {
fatal("bvcmp: size %d != %d\n", bv1->n, bv2->n);
}
for(i = 0; i < bv1->n; i += WORDBITS) {
if(bv1->b[i / WORDBITS] != bv2->b[i / WORDBITS]) {
fatal("bvcmp: element %x != %x @ %d\n", bv1->b[i/WORDBITS], bv2->b[i/WORDBITS], i/WORDBITS);
}
}
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment