Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\div64.h Create Date:2022-07-28 05:34:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:div_u64_rem

Proto:static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)

Type:u64

Parameter:

TypeParameterName
u64dividend
u32divisor
u32 *remainder
45  union{u64 v64;u32 v32[2];}d = {dividend}
51  upper = v32[1]
52  v32[1] = 0
53  If upper >= divisor Then
54  v32[1] = upper / divisor
55  upper %= divisor
57  asm("divl %2":"=a"(v32), "=d"(*remainder):"rm"(divisor), "0"(v32), "1"(upper))
59  Return v64
Caller
NameDescribe
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_timespec64s_to_timespec64 - Convert nanoseconds to timespec64*@nsec: the nanoseconds value to be converted* Returns the timespec64 representation of the nsec parameter.
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