]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: Take advantage of bl_len's power-of-twoness
authorSean Anderson <seanga2@gmail.com>
Wed, 8 Nov 2023 16:48:39 +0000 (11:48 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 18:49:14 +0000 (13:49 -0500)
commit33c8d01a4d20ab1f7cb59bd9860e42196d6ddb4e
treedb4239761b98a1e448e9b2bae287b8e5a8a5de06
parent0c6c83e6a2608421d992781bdbd33a12fa31c10d
spl: Take advantage of bl_len's power-of-twoness

bl_len must be a power of two, so we can use ALIGN instead of roundup and
similar tricks to avoid divisions.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/spl_fit.c
common/spl/spl_imx_container.c