函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:div64_u64_rem - unsigned 64bit divide with 64bit divisor and remainder*@dividend: 64bit dividend*@divisor: 64bit divisor*@remainder: 64bit remainder* This implementation is a comparable to algorithm used by div64_u64

函数原型:u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder)

返回类型:u64

参数:

类型参数名称
u64dividend
u64divisor
u64 *remainder
104  high等于divisor右移32位
107  如果high恒等于0则
109  quot等于div_u64_rem(dividend, divisor, & rem32)
110  remainder等于rem32
111  否则
112  n等于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
113  quot等于div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full
115  如果quot不等于0则quot自减
118  remainder等于dividendquotdivisor
119  如果remainder大于等于divisor
120  quot自加
121  remainder减等于divisor
125  返回:quot
调用者
名称描述
___bpf_prog_run__bpf_prog_run - run eBPF program on a given context*@regs: is the array of MAX_BPF_EXT_REG eBPF pseudo-registers*@insn: is the array of eBPF instructions*@stack: is the eBPF storage stack* Decode and execute eBPF instructions.
scale64_check_overflowScale base by mult/div checking for overflow