Home
last modified time | relevance | path

Searched refs:aFirst (Results 1 – 24 of 24) sorted by relevance

/openthread-3.5.0/src/core/common/
Dnum_utils.hpp55 template <typename Type> Type Min(Type aFirst, Type aSecond) { return (aFirst < aSecond) ? aFirst :… in Min() argument
70 template <typename Type> Type Max(Type aFirst, Type aSecond) { return (aFirst < aSecond) ? aSecond … in Max() argument
170 template <typename Type> int ThreeWayCompare(Type aFirst, Type aSecond) in ThreeWayCompare() argument
172 return (aFirst == aSecond) ? 0 : ((aFirst > aSecond) ? 1 : -1); in ThreeWayCompare()
186 template <> inline int ThreeWayCompare(bool aFirst, bool aSecond) in ThreeWayCompare() argument
188 return (aFirst == aSecond) ? 0 : (aFirst ? 1 : -1); in ThreeWayCompare()
Darg_macros.hpp77 #define _OT_GET_FIRST_ARG(aFirst, ...) aFirst argument
85 #define _OT_GET_SECOND_WITH_ONE_ARG(aFirst) argument
86 #define _OT_GET_SECOND_WITH_TWO_ARGS(aFirst, aSecond) aSecond argument
91 #define _OT_GET_REST_WITH_ONE_ARG(aFirst) argument
92 #define _OT_GET_REST_WITH_TWO_OR_MORE_ARGS(aFirst, ...) , __VA_ARGS__ argument
Dstring.hpp286 inline constexpr bool AreStringsInOrder(const char *aFirst, const char *aSecond) in AreStringsInOrder() argument
288 return (*aFirst < *aSecond) in AreStringsInOrder()
290 …: ((*aFirst > *aSecond) || (*aFirst == '\0') ? false : AreStringsInOrder(aFirst + 1, aSecond + 1)); in AreStringsInOrder()
450 constexpr static bool AreInOrder(const Entry &aFirst, const Entry &aSecond) in AreInOrder() argument
452 return aFirst.mKey < aSecond.mKey; in AreInOrder()
Dserial_number.hpp64 template <typename UintType> static bool IsLess(UintType aFirst, UintType aSecond) in IsLess() argument
73 return ((aFirst - aSecond) & kNegativeMask) != 0; in IsLess()
92 template <typename UintType> static bool IsGreater(UintType aFirst, UintType aSecond) in IsGreater() argument
94 return IsLess(aSecond, aFirst); in IsGreater()
Ddata.hpp76 typedef bool (*ByteMatcher)(uint8_t aFirst, uint8_t aSecond);
/openthread-3.5.0/src/core/meshcop/
Dtimestamp.cpp56 int Timestamp::Compare(const Timestamp *aFirst, const Timestamp *aSecond) in Compare() argument
60 if (aFirst == nullptr) in Compare()
76 rval = Compare(*aFirst, *aSecond); in Compare()
82 int Timestamp::Compare(const Timestamp &aFirst, const Timestamp &aSecond) in Compare() argument
86 rval = ThreeWayCompare(aFirst.GetSeconds(), aSecond.GetSeconds()); in Compare()
89 rval = ThreeWayCompare(aFirst.GetTicks(), aSecond.GetTicks()); in Compare()
92 rval = ThreeWayCompare(aFirst.GetAuthoritative(), aSecond.GetAuthoritative()); in Compare()
Dtimestamp.hpp166 static int Compare(const Timestamp *aFirst, const Timestamp *aSecond);
179 static int Compare(const Timestamp &aFirst, const Timestamp &aSecond);
/openthread-3.5.0/tests/unit/
Dtest_mle.cpp86 void CompareDevicePropertiess(const otDeviceProperties &aFirst, const otDeviceProperties &aSecond) in CompareDevicePropertiess() argument
91 VerifyOrQuit(aFirst.mPowerSupply == aSecond.mPowerSupply); in CompareDevicePropertiess()
92 VerifyOrQuit(aFirst.mIsBorderRouter == aSecond.mIsBorderRouter); in CompareDevicePropertiess()
93 VerifyOrQuit(aFirst.mSupportsCcm == aSecond.mSupportsCcm); in CompareDevicePropertiess()
94 VerifyOrQuit(aFirst.mIsUnstable == aSecond.mIsUnstable); in CompareDevicePropertiess()
95 VerifyOrQuit(Clamp(aFirst.mLeaderWeightAdjustment, kMinAdjustment, kMaxAdjustment) == in CompareDevicePropertiess()
Dtest_macros.cpp49 int Sum(int aFirst) { return aFirst; } in Sum() argument
51 template <typename... Args> int Sum(int aFirst, Args... aArgs) { return aFirst + Sum(aArgs...); } in Sum() argument
Dtest_binary_search.cpp49 constexpr static bool AreInOrder(const Entry &aFirst, const Entry &aSecond) in TestBinarySearch()
51 return AreStringsInOrder(aFirst.mName, aSecond.mName); in TestBinarySearch()
Dtest_mac_frame.cpp40 bool CompareReversed(const uint8_t *aFirst, const uint8_t *aSecond, uint16_t aLength) in CompareReversed() argument
46 if (aFirst[i] != aSecond[aLength - 1 - i]) in CompareReversed()
56 bool CompareAddresses(const Mac::Address &aFirst, const Mac::Address &aSecond) in CompareAddresses() argument
60 VerifyOrExit(aFirst.GetType() == aSecond.GetType()); in CompareAddresses()
62 switch (aFirst.GetType()) in CompareAddresses()
67 VerifyOrExit(aFirst.GetShort() == aSecond.GetShort()); in CompareAddresses()
70 VerifyOrExit(aFirst.GetExtended() == aSecond.GetExtended()); in CompareAddresses()
/openthread-3.5.0/src/core/api/
Dip6_api.cpp175 bool otIp6IsAddressEqual(const otIp6Address *aFirst, const otIp6Address *aSecond) in otIp6IsAddressEqual() argument
177 return AsCoreType(aFirst) == AsCoreType(aSecond); in otIp6IsAddressEqual()
180 bool otIp6ArePrefixesEqual(const otIp6Prefix *aFirst, const otIp6Prefix *aSecond) in otIp6ArePrefixesEqual() argument
182 return AsCoreType(aFirst) == AsCoreType(aSecond); in otIp6ArePrefixesEqual()
216 uint8_t otIp6PrefixMatch(const otIp6Address *aFirst, const otIp6Address *aSecond) in otIp6PrefixMatch() argument
218 return AsCoreType(aFirst).PrefixMatch(AsCoreType(aSecond)); in otIp6PrefixMatch()
Dnat64_api.cpp133 bool otIp4IsAddressEqual(const otIp4Address *aFirst, const otIp4Address *aSecond) in otIp4IsAddressEqual() argument
135 return AsCoreType(aFirst) == AsCoreType(aSecond); in otIp4IsAddressEqual()
/openthread-3.5.0/src/core/utils/
Dflash.hpp149 void Init(uint16_t aKey, bool aFirst) in Init() argument
154 if (aFirst) in Init()
216 Error Add(uint16_t aKey, bool aFirst, const uint8_t *aValue, uint16_t aValueLength);
Dflash.cpp180 Error Flash::Add(uint16_t aKey, bool aFirst, const uint8_t *aValue, uint16_t aValueLength) in Add() argument
185 record.Init(aKey, aFirst); in Add()
/openthread-3.5.0/src/cli/
Dcli_dataset.hpp84 … constexpr static bool AreInOrder(const ComponentMapper &aFirst, const ComponentMapper &aSecond) in AreInOrder()
86 return AreStringsInOrder(aFirst.mName, aSecond.mName); in AreInOrder()
Dcli_output.hpp152 constexpr static bool AreInOrder(const CommandEntry &aFirst, const CommandEntry &aSecond) in AreInOrder()
154 return AreStringsInOrder(aFirst.mName, aSecond.mName); in AreInOrder()
/openthread-3.5.0/src/core/thread/
Duri_paths.cpp50 constexpr static bool AreInOrder(const Entry &aFirst, const Entry &aSecond) in AreInOrder()
52 return AreStringsInOrder(aFirst.mPath, aSecond.mPath); in AreInOrder()
Dnetwork_data_leader.cpp268 int LeaderBase::CompareRouteEntries(const EntryType &aFirst, const EntryType &aSecond) const in CompareRouteEntries() argument
272 …return CompareRouteEntries(aFirst.GetPreference(), aFirst.GetRloc(), aSecond.GetPreference(), aSec… in CompareRouteEntries()
Dnetwork_data_leader.hpp313 …template <typename EntryType> int CompareRouteEntries(const EntryType &aFirst, const EntryType &aS…
/openthread-3.5.0/include/openthread/
Dip6.h595 bool otIp6IsAddressEqual(const otIp6Address *aFirst, const otIp6Address *aSecond);
607 bool otIp6ArePrefixesEqual(const otIp6Prefix *aFirst, const otIp6Prefix *aSecond);
698 uint8_t otIp6PrefixMatch(const otIp6Address *aFirst, const otIp6Address *aSecond);
Dnat64.h403 bool otIp4IsAddressEqual(const otIp4Address *aFirst, const otIp4Address *aSecond);
/openthread-3.5.0/src/core/net/
Ddns_types.cpp566 bool Name::LabelIterator::CaseInsensitiveMatch(uint8_t aFirst, uint8_t aSecond) in CaseInsensitiveMatch() argument
568 return ToLowercase(static_cast<char>(aFirst)) == ToLowercase(static_cast<char>(aSecond)); in CaseInsensitiveMatch()
Ddns_types.hpp1015 static bool CaseInsensitiveMatch(uint8_t aFirst, uint8_t aSecond);