Home
last modified time | relevance | path

Searched refs:newValue (Results 1 – 4 of 4) sorted by relevance

/openthread-latest/src/core/thread/
Dlink_quality.cpp48 uint32_t newValue = (aSuccess) ? 0 : kMaxRateValue; in AddSample() local
54 mFailureRate = static_cast<uint16_t>(((oldAverage * (n - 1)) + newValue + (n / 2)) / n); in AddSample()
60 uint16_t newValue; in Add() local
70 newValue = static_cast<uint16_t>(-aRss); in Add()
71 newValue <<= kPrecisionBitShift; in Add()
76 mAverage = static_cast<uint16_t>(((mAverage * (mCount - 1)) + newValue) / mCount); in Add()
/openthread-latest/src/core/net/
Dchecksum.cpp51 uint16_t newValue = mValue; in AddUint8() local
55 newValue += mAtOddIndex ? aUint8 : (static_cast<uint16_t>(aUint8) << 8); in AddUint8()
59 if (newValue < mValue) in AddUint8()
61 newValue++; in AddUint8()
64 mValue = newValue; in AddUint8()
/openthread-latest/src/core/utils/
Dchannel_monitor.cpp146 uint32_t newValue = 0; in HandleEnergyScanResult() local
155 newValue = (aResult->mMaxRssi >= kRssiThreshold) ? kMaxOccupancy : 0; in HandleEnergyScanResult()
178 newAverage = (newAverage * weight + newValue) / (weight + 1); in HandleEnergyScanResult()
Dparse_cmdline.cpp133 uint64_t newValue; in ParseAsUint64() local
138 newValue = value + digit; in ParseAsUint64()
139 VerifyOrExit(newValue >= value, error = kErrorInvalidArgs); in ParseAsUint64()
140 value = newValue; in ParseAsUint64()