函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:div_u64_rem

函数原型:static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)

返回类型:u64

参数:

类型参数名称
u64dividend
u32divisor
u32 *remainder
45  union{u64 v64;u32 v32[2];}d = {dividend}
51  upper等于v32[1]
52  v32[1]等于0
53  如果upper大于等于divisor
54  v32[1]等于upperdivisor
55  upper取模等于divisor
57  asm("divl %2":"=a"(v32), "=d"(*remainder):"rm"(divisor), "0"(v32), "1"(upper))
59  返回:v64
调用者
名称描述
div_s64_remdiv_s64_rem - signed 64bit divide with 64bit divisor and remainder*@dividend: 64bit dividend*@divisor: 64bit divisor*@remainder: 64bit remainder
div64_u64_remdiv64_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
ns_to_timespec64纳秒转换到64位timespec时间
jiffies_to_timespec64
jiffies_to_timeval
div_u64div_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