#
88275138 |
|
24-Mar-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
kernel/util: Implement more features in the Bitmap class. * Resize(): adds more space to the end of the bitmap. * Shift(): moves all bits in the map up or down. * Use size_t instead of int for indexes. Also add unit tests for the new functions (they seem to be passing.) Reference material for shift implementation: https://github.com/ecsv/linux-like-bitops/blob/2c56d43c1ebc9fc0dddc0149a374d096198372a9/bitops.h#L977 Change-Id: Ia85768aaeed7bd3ffef3a9f575f05331e048fe50 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5146 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|