函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_leading_zeros - Count the number of zeros from the MSB back*@x: The value* Count the number of leading zeros from the MSB going towards the LSB in @x.* If the MSB of @x is set, the result is 0.

函数原型:static inline int count_leading_zeros(unsigned long x)

返回类型:int

参数:

类型参数名称
unsigned longx
25  如果x的长度恒等于4则返回:BITS_PER_LONGls - 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
27  否则返回:BITS_PER_LONGls64 - find last set bit in a 64-bit word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffsll, but returns the position of the most significant set bit
调用者
名称描述
mpi_read_raw_data读一字节流为正整数
count_lzeros
mpi_read_raw_from_sglmpi_read_raw_from_sgl() - Function allocates an MPI and populates it with* data from the sgl* This function works in the same way as the mpi_read_raw_data, but it* takes an sgl instead of void * buffer. i.e. it allocates
mpi_get_nbits返回位数
mpi_powm异或取模