函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\math\int_sqrt.c Create Date:2022-07-27 07:40:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_sqrt64 - strongly typed int_sqrt function when minimum 64 bit input* is expected.*@x: 64bit integer of which to calculate the sqrt

函数原型:u32 int_sqrt64(u64 x)

返回类型:u32

参数:

类型参数名称
u64x
50  y等于0
52  如果x小于等于ULONG_MAX则返回:_sqrt - computes the integer square root*@x: integer of which to calculate the sqrt* Computes: floor(sqrt(x))
55  m等于1ULL左移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减1按位与1ULL的反的值位
56 m不等于0循环
57  b等于ym
58  y右移等于1位
60  如果x大于等于b
61  x减等于b
62  y加等于m
64  m右移等于2位
67  返回:y