Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:-constant log of base 2 calculators* - the arch may override these in asm/bitops.h if they can be implemented* more efficiently than using fls() and fls64()* - the arch is not required to handle n==0 if implementing the fallback

Proto:static inline __attribute__((const)) int __ilog2_u32(u32 n)

Type:int

Parameter:

TypeParameterName
u32n
24  Return ls - find last set bit in word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffs, but returns the position of the most significant set bit.* fls(value) returns 0 if value is 0 or the position of the last - 1