/openthread-3.5.0/src/core/common/ |
D | num_utils.hpp | 55 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()
|
D | arg_macros.hpp | 77 #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
|
D | string.hpp | 286 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()
|
D | serial_number.hpp | 64 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()
|
D | data.hpp | 76 typedef bool (*ByteMatcher)(uint8_t aFirst, uint8_t aSecond);
|
/openthread-3.5.0/src/core/meshcop/ |
D | timestamp.cpp | 56 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()
|
D | timestamp.hpp | 166 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/ |
D | test_mle.cpp | 86 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()
|
D | test_macros.cpp | 49 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
|
D | test_binary_search.cpp | 49 constexpr static bool AreInOrder(const Entry &aFirst, const Entry &aSecond) in TestBinarySearch() 51 return AreStringsInOrder(aFirst.mName, aSecond.mName); in TestBinarySearch()
|
D | test_mac_frame.cpp | 40 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/ |
D | ip6_api.cpp | 175 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()
|
D | nat64_api.cpp | 133 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/ |
D | flash.hpp | 149 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);
|
D | flash.cpp | 180 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/ |
D | cli_dataset.hpp | 84 … constexpr static bool AreInOrder(const ComponentMapper &aFirst, const ComponentMapper &aSecond) in AreInOrder() 86 return AreStringsInOrder(aFirst.mName, aSecond.mName); in AreInOrder()
|
D | cli_output.hpp | 152 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/ |
D | uri_paths.cpp | 50 constexpr static bool AreInOrder(const Entry &aFirst, const Entry &aSecond) in AreInOrder() 52 return AreStringsInOrder(aFirst.mPath, aSecond.mPath); in AreInOrder()
|
D | network_data_leader.cpp | 268 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()
|
D | network_data_leader.hpp | 313 …template <typename EntryType> int CompareRouteEntries(const EntryType &aFirst, const EntryType &aS…
|
/openthread-3.5.0/include/openthread/ |
D | ip6.h | 595 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);
|
D | nat64.h | 403 bool otIp4IsAddressEqual(const otIp4Address *aFirst, const otIp4Address *aSecond);
|
/openthread-3.5.0/src/core/net/ |
D | dns_types.cpp | 566 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()
|
D | dns_types.hpp | 1015 static bool CaseInsensitiveMatch(uint8_t aFirst, uint8_t aSecond);
|