函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Scale a 64-bit delta by scaling and multiplying by a 32-bit fraction,* yielding a 64-bit result.

函数原型:static inline u64 pvclock_scale_delta(u64 delta, unsigned int mul_frac, int shift)

返回类型:u64

参数:

类型参数名称
u64delta
unsigned intmul_frac
intshift
51  如果shift小于0则delta右移等于负shift
53  否则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  返回:product
调用者
名称描述
__pvclock_read_cycles