函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\log2.h Create Date:2022-07-27 06:38:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__bits_per

函数原型:static inline __attribute__((const)) int __bits_per(unsigned long n)

返回类型:int

参数:

类型参数名称
unsigned longn
227  如果n小于2则返回:1
229  如果s_power_of_2() - check if a value is a power of two*@n: the value to check* Determine whether some value is a power of two, where zero is* *not* considered a power of two.* Return: true if @n is a power of 2, otherwise false.则返回:rder_base_2 - calculate the (rounded up) base 2 order of the argument*@n: parameter* The first few values calculated by this routine:* ob2(0) = 0* ob2(1) = 0* ob2(2) = 1* ob2(3) = 2* ob2(4) = 2* ob2(5) = 3* ... and so on.(n)加1
231  返回:rder_base_2 - calculate the (rounded up) base 2 order of the argument*@n: parameter* The first few values calculated by this routine:* ob2(0) = 0* ob2(1) = 0* ob2(2) = 1* ob2(3) = 2* ob2(4) = 2* ob2(5) = 3* ... and so on.(n)