Reduce differences between alternative bitmap implementations.

This commit is contained in:
Jason Evans
2016-04-06 10:38:47 -07:00
parent 4a8abbb400
commit 2ee2f1ec57
2 changed files with 5 additions and 8 deletions

View File

@@ -223,7 +223,7 @@ bitmap_sfu(bitmap_t *bitmap, const bitmap_info_t *binfo)
i++;
g = bitmap[i];
}
bit = (bit - 1) + (i << LG_BITMAP_GROUP_NBITS);
bit = (i << LG_BITMAP_GROUP_NBITS) + (bit - 1);
#endif
bitmap_set(bitmap, binfo, bit);
return (bit);