Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\math\div64.c Create Date:2022-07-28 06:43:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:div64_s64 - signed 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor

Proto:s64 div64_s64(s64 dividend, s64 divisor)

Type:s64

Parameter:

TypeParameterName
s64dividend
s64divisor
174  quot = div64_u64 - unsigned 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor* This implementation is a modified version of the algorithm proposed* by the book 'Hacker's Delight'. The original source and full proof
175  t = (dividend ^ divisor) >> 63
177  Return (quot ^ t) - t