diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2020-12-28 21:52:33 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2021-01-05 15:21:06 +0100 |
commit | cc5981b239d3f1d1ef4cffa3d8cdd407c4c7ef79 (patch) | |
tree | 36b32bb0e710cca72b92071414db29063caf4f7a /ldelf/include | |
parent | 27e8d08d664b80a632eac1065d4904f85220bd75 (diff) |
libutil: add alignment parameter to bget
Adds alignment parameter to bget(), bgetz() and bgetr(). If alignment is
larger then 0 the returned buffer is guaranteed to have an address which
is a multiple of this value.
The algorithm is basically unchanged, in the way that the memory is
still allocated from the end of a free memory block. The difference is
in the core implementation in bget() where now alignment of the returned
memory is taken into account. If only allocating with the minimum
alignment the memory blocks are expected to be allocated in the same
pattern.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'ldelf/include')
0 files changed, 0 insertions, 0 deletions