Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\math\reciprocal_div.c Create Date:2022-07-28 06:43:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:For a description of the algorithm please have a look at* include/linux/reciprocal_div.h

Proto:struct reciprocal_value reciprocal_value(u32 d)

Type:struct reciprocal_value

Parameter:

TypeParameterName
u32d
19  l = 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
20  m = (1ULL << 32) * ((1ULL << l) - d)
21  do_div() is NOT a C function(m, d)
22  ++m
23  m = m
24  sh1 = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(l, 1)
25  sh2 = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(l - 1, 0)
27  Return R