Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\log2.h Create Date:2022-07-28 05:34:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__roundup_pow_of_two() - round up to nearest power of two*@n: value to round up

Proto:static inline __attribute__((const)) unsigned long __roundup_pow_of_two(unsigned long n)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longn
57  Return 1UL << fls_long(n - 1)