/* reserve room for bitmap */ bcnt = (bcnt / bsize) * bsize < bcnt ? bcnt / bsize + 1 : bcnt / bsize; for (x = 0; x < bcnt; ++x) { bm[x] = 5; }