]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/include/asm/utils.h
3 * Texas Instruments, <www.ti.com>
4 * Aneesh V <aneesh@ti.com>
6 * SPDX-License-Identifier: GPL-2.0+
11 static inline s32
log_2_n_round_up(u32 n
)
22 return log2n
+ 1; /* not power of 2 - round up */
24 return log2n
; /* power of 2 */
27 static inline s32
log_2_n_round_down(u32 n
)