History log of /haiku/headers/private/kernel/util/Bitmap.h
Revision Date Author Comments
# 0235c047 24-Jul-2023 X512 <danger_mail@list.ru>

util/Bitmap: add more utility methods

Change-Id: I021c2fafa01266e8a38c1cb2fd748fd89a4b75bd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6742
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# cb1df90e 31-May-2023 Augustin Cavalier <waddlesplash@gmail.com>

Revert "kernel/vm: handle page protections in cut_area"

This reverts commit de07bc3fa58600e923d75cb732c60dacf160c098.

That's what I get for fixing bugs on test branches.


# de07bc3f 30-May-2023 Trung Nguyen <trungnt282910@gmail.com>

kernel/vm: handle page protections in cut_area

- Resize the `page_protections` array in `cut_area` and also shift
the bits if necessary.
- Set the correct protection array as well as the real page
protections for the second area produced by `cut_area`.

Change-Id: I62293480487e828970ebe5a3bc729cec2a14c687


# 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>


# 4cba4ff1 07-Oct-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel/util: Use private/kernel/debug.h


# 149c82a8 02-Oct-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel/util: Add bitmap implementation


# 4cba4ff1df8b1dd778bf092f9c1936ff8385ed88 07-Oct-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel/util: Use private/kernel/debug.h


# 149c82a8ec8b1faed2ae722852042ba9d603b552 02-Oct-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel/util: Add bitmap implementation