Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\string.c Create Date:2022-07-28 07:27:07
Last Modify:2022-05-21 21:56:45 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, unsigned int divisor, unsigned int *remainder)

Type:u64

Parameter:

TypeParameterName
u64dividend
unsigned intdivisor
unsigned int *remainder
204  union{u64 v64;unsigned int v32[2];}d = {dividend}
210  upper = v32[1]
211  v32[1] = 0
212  If upper >= divisor Then
213  v32[1] = upper / divisor
214  upper %= divisor
216  asm("divl %2":"=a"(v32), "=d"(*remainder):"rm"(divisor), "0"(v32), "1"(upper))
218  Return v64
Caller
NameDescribe
__div_u64