third_party.pigweed.src/pw_software_update
Keir Mierle 273e2fff66 pw_software_update: Replace macro with function
Reduce code size by moving some parts of the SET_ERROR() macro into a
function. This saves 2 * 26 PW_CHECK() invocations by pushing those
checks into shared code.

More savings are possible by re-using the computed log slug, but that
requires adding functionality to pw_log and will come later.

Change-Id: I191077b3ce79b5578501222250f8620ec8b38b9d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/70120
Commit-Queue: Yecheng Zhao <zyecheng@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-12-02 02:59:28 +00:00
..
public/pw_software_update pw_software_update: Replace macro with function 2021-12-02 02:59:28 +00:00
py pw_software_update/py: Relax root metadata signing checks 2021-11-30 07:10:01 +00:00
BUILD.bazel
BUILD.gn
bundled_update_service_test.cc
bundled_update_service.cc pw_software_update: Replace macro with function 2021-12-02 02:59:28 +00:00
bundled_update.options
bundled_update.proto
docs.rst
OWNERS
README.md
tuf.proto
update_bundle_accessor.cc
update_bundle_test.cc
update_bundle.proto

Software update module