The flat_bitmap module offers an extended API, at the cost of decreased performance in the case of very large bitmaps.