函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static __always_inline int fls64(__u64 x)

返回类型:int

参数:

类型参数名称
__u64x
368  bitpos等于负1
374  asm("bsrq %1,%q0":"+r"(bitpos):"rm"(x))
377  返回:bitpos加1
调用者
名称描述
int_sqrt64_sqrt64 - strongly typed int_sqrt function when minimum 64 bit input* is expected.*@x: 64bit integer of which to calculate the sqrt
cpu_has_xfeaturesReturn whether the system supports a given xfeature.* Also return the name of the (most advanced) feature that the caller requested:
generic_get_mtrr
set_max_threadsset_max_threads
dma_direct_get_required_mask
scale64_check_overflowScale base by mult/div checking for overflow
tnum_range
perf_calculate_period
add_token_u64
opal_generic_read_write_table
fls_long
__ilog2_u64
find_next_netdev_featureFinds the next feature with the highest number of the range of start till 0.
count_leading_zeros_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.