A faster implementation of the OPAL_BITMAP. The corresponding
test has also been updated.
Correctly handle the case where we restrict the size to INT_MAX.