-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_allocator: Refactor Block to use encoded offsets
This CL refactors `Block` into `Block<UintType, kMaxSize>`. Instead of using next and previous block pointers, it now encodes offsets and flags in fields of type `UintType`. Depending on `kMaxSize`, there may be bits of `UintType` that are not needed to address blocks. These bits are available to be used as custom flags. Change-Id: Ic979f6d6982088de810bdd9b793e1e115aef65eb Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/176578 Reviewed-by: Taylor Cramer <[email protected]> Commit-Queue: Aaron Green <[email protected]>
- Loading branch information
1 parent
3bad357
commit 26ccfc6
Showing
12 changed files
with
1,101 additions
and
694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.