Home
last modified time | relevance | path

Searched refs:aDivisor (Results 1 – 2 of 2) sorted by relevance

/openthread-latest/src/core/common/
Dnum_utils.hpp193 …late <typename IntType> inline IntType DivideAndRoundToClosest(IntType aDividend, IntType aDivisor) in DivideAndRoundToClosest() argument
195 return (aDividend + (aDivisor / 2)) / aDivisor; in DivideAndRoundToClosest()
208 template <typename IntType> inline IntType DivideAndRoundUp(IntType aDividend, IntType aDivisor) in DivideAndRoundUp() argument
210 return (aDividend + (aDivisor - 1)) / aDivisor; in DivideAndRoundUp()
Duptime.cpp98 static uint16_t DivideAndGetRemainder(uint32_t &aDividend, uint32_t aDivisor) in DivideAndGetRemainder() argument
103 uint32_t quotient = aDividend / aDivisor; in DivideAndGetRemainder()
105 aDividend -= quotient * aDivisor; in DivideAndGetRemainder()