Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Scale a 64-bit delta by scaling and multiplying by a 32-bit fraction,* yielding a 64-bit result.

Proto:static inline u64 pvclock_scale_delta(u64 delta, unsigned int mul_frac, int shift)

Type:u64

Parameter:

TypeParameterName
u64delta
unsigned intmul_frac
intshift
51  If shift < 0 Then delta >>= -shift
53  Else delta <<= shift
68  __asm__("mulq %[mul_frac] ; shrd $32, %[hi], %[lo]":[lo]"=a"(product), [hi]"=d"(tmp):"0"(delta), [mul_frac]"rm"((u64)mul_frac))
78  Return product