bitmap_pos_to_ord
int n = bitmap_pos_to_ord(old, oldbit, nbits);
int n = bitmap_pos_to_ord(old, oldbit, bits);