Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:div_s64_rem - signed 64bit divide with 64bit divisor and remainder*@dividend: 64bit dividend*@divisor: 64bit divisor*@remainder: 64bit remainder

Proto:s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder)

Type:s64

Parameter:

TypeParameterName
s64dividend
s32divisor
s32 *remainder
75  If dividend < 0 Then
76  quotient = div_u64_rem( - dividend, abs - return absolute value of an argument*@x: the value. If it is unsigned type, it is converted to signed type first.* char is treated as if it was signed (regardless of whether it really is)* but the macro's return type is preserved as char.(divisor), (u32 * )remainder)
77  remainder = -remainder
78  If divisor > 0 Then quotient = -quotient
80  Else
81  quotient = div_u64_rem(dividend, abs - return absolute value of an argument*@x: the value. If it is unsigned type, it is converted to signed type first.* char is treated as if it was signed (regardless of whether it really is)* but the macro's return type is preserved as char.(divisor), (u32 * )remainder)
82  If divisor < 0 Then quotient = -quotient
85  Return quotient
Caller
NameDescribe
second_overflowhis routine handles the overflow of the microsecond field* The tricky bits of code to handle the accurate clock support* were provided by Dave Mills (Mills@UDEL.EDU) of NTP fame.* They were originally developed for SUN and DEC kernels.
time64_to_tmme64_to_tm - converts the calendar time to local broken-down time*@totalsecs the number of seconds elapsed since 00:00:00 on January 1, 1970,* Coordinated Universal Time (UTC)
div_s64div_s64 - signed 64bit divide with 32bit divisor*@dividend: signed 64bit dividend*@divisor: signed 32bit divisor