roll: pigweed pw_allocator: Add BlockResult

This CL improves on the previously introduced BlockAllocType to
communicate both the result of allocator requests as well as
side-effects to neighboring blocks.

Instead of being a simple enum and returning a `Result<BlockAllocType>`
from methods like `AllocFirst` and `AllocLast`, `BlockResult` uses
`StatusWithSize` to fit in a single word, and encodes separate values to
for both the previous and next blocks to inidcate how they have changed.

Additionally, `Resize` has been updated to return a `BlockResult`.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/232212
Original-Revision: d3a6358972d5897266e2b5ecf50681a8e8456e5b

Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: 87f43fec003b4b..d3a6358972d589
Roller-URL: https://ci.chromium.org/b/8734694864045651873
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I76dc8c2c14b0324e90bf669141f14a1807ed6f28
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/240696
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
1 file changed
tree: 0d7cdd2b4af60456857df2e5e25da6e569a578ec
  1. .github/
  2. .vscode/
  3. apps/
  4. device/
  5. modules/
  6. system/
  7. targets/
  8. tools/
  9. web_app/
  10. .bazelignore
  11. .bazelrc
  12. .bazelversion
  13. .buildifier.json
  14. .clang-format
  15. .clangd.shared
  16. .gitignore
  17. .pw_console.yaml
  18. AUTHORS
  19. BUILD.bazel
  20. CONTRIBUTING.md
  21. LICENSE
  22. MODULE.bazel
  23. MODULE.bazel.lock
  24. OWNERS
  25. pigweed.json
  26. README.md
README.md

Sense

git clone https://pigweed.googlesource.com/pigweed/showcase/sense

Welcome to Pigweed Sense, a tour of key Pigweed components experienced through an imagined air quality product.

Please visit Sense: An interactive tour through Pigweed to get started.