diff options
author | Julius Werner <jwerner@chromium.org> | 2019-05-07 17:29:21 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-05-23 08:42:44 +0000 |
commit | e8e92d60c4e2a17542a98bdfb3a533060d26a281 (patch) | |
tree | 40fb303ed573e35be2711f593ff34af19c787221 /util/kconfig/conf.c | |
parent | e6afab12e27df5c4adb7c6eaec1f71f825f9ad52 (diff) |
endian.h: Add be32dec/be32enc family of functions
Libpayload has a family of functions that can "encode" or "decode" an
endian-specific integer onto a byte stream pointer. These allow writing
more pretty code than a raw be32_to_cpu/cpu_to_be32 with pointer casts
in many (de-)serialization scenarios, so let's add them to coreboot as
well.
Change-Id: I049c5665484da12b3cf977a529310b0bde177d2d
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32856
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/kconfig/conf.c')
0 files changed, 0 insertions, 0 deletions