Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_sqrt - computes the integer square root*@x: integer of which to calculate the sqrt* Computes: floor(sqrt(x))

Proto:unsigned long int_sqrt(unsigned long x)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longx
21  y = 0
23  If x <= 1 Then Return x
26  m = 1UL << (__fls: find last set bit in word*@word: The word to search* Undefined if no set bit exists, so code should check against 0 first. & ~1UL)
27  When m != 0 cycle
28  b = y + m
29  y >>= 1
31  If x >= b Then
32  x -= b
33  y += m
35  m >>= 2
38  Return y
Caller
NameDescribe
int_sqrt64_sqrt64 - strongly typed int_sqrt function when minimum 64 bit input* is expected.*@x: 64bit integer of which to calculate the sqrt
slow_is_prime_number
init_per_zone_wmark_minInitialise min_free_kbytes