1
0
mirror of https://github.com/golang/go synced 2024-09-25 01:20:13 -06:00

cmd/gc: remove unused bit vector comparison code

R=golang-dev, dave, iant
CC=golang-dev
https://golang.org/cl/9738045
This commit is contained in:
Carl Shapiro 2013-05-29 11:46:14 -07:00
parent a3e0002e6a
commit 322c08f2f7

View File

@ -78,18 +78,3 @@ bvisempty(Bvec *bv)
return 0;
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;
}