Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_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.

Proto:static inline int count_leading_zeros(unsigned long x)

Type:int

Parameter:

TypeParameterName
unsigned longx
25  If size of x == 4 Then Return BITS_PER_LONG - 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
27  Else Return BITS_PER_LONG - ls64 - 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
Caller
NameDescribe
mpi_read_raw_datampi_read_raw_data - Read a raw byte stream as a positive integer*@xbuffer: The data to read*@nbytes: The amount of data to read
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_nbitsReturn the number of bits in A.
mpi_powmRES = BASE ^ EXP mod MOD