Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mul_u64_u32_div

Proto:static inline u64 mul_u64_u32_div(u64 a, u32 mul, u32 divisor)

Type:u64

Parameter:

TypeParameterName
u64a
u32mul
u32divisor
258  union{u64 ll;struct{u32 low, high;}l;}u, rl, rh
269  ll = a
270  ll = mul_u32_u32(low, mul)
271  ll = mul_u32_u32(high, mul) + high
274  high = do_div() is NOT a C function(ll, divisor)
277  do_div() is NOT a C function(ll, divisor)
279  high = low
280  Return ll
Caller
NameDescribe
adjust_historical_crosststampadjust_historical_crosststamp - adjust crosstimestamp previous to current interval*@history: Snapshot representing start of history*@partial_history_cycles: Cycle offset into history (fractional part)*@total_history_cycles: Total history length in