Re: [PATCH v6 07/25] spl: Take advantage of bl_len's power-of-twoness

2023-11-07 Thread Simon Glass
On Sun, 5 Nov 2023 at 19:26, Sean Anderson wrote: > > 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 > --- > > Changes in v6: > - New > > common/spl/spl_fit.c | 2 +- >

[PATCH v6 07/25] spl: Take advantage of bl_len's power-of-twoness

2023-11-05 Thread Sean Anderson
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 --- Changes in v6: - New common/spl/spl_fit.c | 2 +- common/spl/spl_imx_container.c | 8 2 files changed, 5 insertions(+), 5