Home
last modified time | relevance | path

Searched refs:threeWayCmp (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/libc/src/string/memory_utils/
H A Dalgorithm.h56 return NextT::threeWayCmp(offsetAddr<Bytes>(src1), in threeWayCmp()
61 static inline int32_t threeWayCmp(SrcAddrT1 src1, SrcAddrT2 src2, in threeWayCmp() function
64 return NextT::threeWayCmp(offsetAddr<Bytes>(src1), in threeWayCmp()
116 static inline int32_t threeWayCmp(SrcAddrT1 src1, SrcAddrT2 src2, in threeWayCmp() function
118 return SizedOpT::threeWayCmp(tailAddr<SIZE>(src1, runtime_size), in threeWayCmp()
180 static inline int32_t threeWayCmp(SrcAddrT1 src1, SrcAddrT2 src2, in threeWayCmp() function
184 if (const int32_t res = SizedOpT::threeWayCmp(src1, src2)) in threeWayCmp()
186 return Tail<SizedOpT>::threeWayCmp(src1, src2, runtime_size); in threeWayCmp()
301 if (int32_t res = SizedOpT::threeWayCmp( in threeWayCmp()
307 return Tail<SizedOpT>::threeWayCmp(src1, src2, runtime_size); in threeWayCmp()
[all …]
H A Dbackend_scalar.h50 template <typename T> static inline int32_t threeWayCmp(T v1, T v2) { in threeWayCmp() function
63 int32_t inline Scalar64BitBackend::threeWayCmp<uint8_t>(uint8_t a, uint8_t b) {
69 int32_t inline Scalar64BitBackend::threeWayCmp<uint16_t>(uint16_t a,
76 int32_t inline Scalar64BitBackend::threeWayCmp<uint32_t>(uint32_t a,
83 int32_t inline Scalar64BitBackend::threeWayCmp<uint64_t>(uint64_t a,
H A Dsized_op.h140 static inline int32_t threeWayCmp(SrcAddrT1 src1, SrcAddrT2 src2) { in threeWayCmp() function
159 if (int32_t res = Backend::template threeWayCmp<type>(a, b)) in threeWayCmp()
162 return NextBlock::threeWayCmp(offsetAddr<TYPE_SIZE>(src1), in threeWayCmp()
H A Dbackend_x86.h72 static inline int32_t threeWayCmp(T v1, T v2) { in threeWayCmp() function
73 return Scalar64BitBackend::template threeWayCmp<T>(v1, v2); in threeWayCmp()
100 static inline int32_t threeWayCmp(T v1, T v2) { in threeWayCmp() function
H A Dbackends.h45 template <typename T> static int32_t threeWayCmp(T v1, T v2);
/llvm-project-15.0.7/libc/test/src/string/memory_utils/
H A Dbackend_test.cpp59 static int32_t threeWayCmp(const BufferT &v1, const BufferT &v2) { in threeWayCmp() function
60 return Backend::template threeWayCmp<T>(bit_cast<T>(v1), bit_cast<T>(v2)); in threeWayCmp()
105 TYPED_TEST(LlvmLibcMemoryBackend, threeWayCmp, FunctionTypes) { in TYPED_TEST() argument
107 EXPECT_EQ(ParamType::threeWayCmp(a, a), 0); in TYPED_TEST()
114 EXPECT_GT(ParamType::threeWayCmp(a, b), 0); in TYPED_TEST()
115 EXPECT_LT(ParamType::threeWayCmp(b, a), 0); in TYPED_TEST()
117 EXPECT_LT(ParamType::threeWayCmp(a, b), 0); in TYPED_TEST()
118 EXPECT_GT(ParamType::threeWayCmp(b, a), 0); in TYPED_TEST()
H A Dalgorithm_test.cpp64 template <typename T> static inline int32_t threeWayCmp(T v1, T v2) { in threeWayCmp() function
66 return Scalar64BitBackend::threeWayCmp<T>(v1, v2); in threeWayCmp()
312 SizedOp<TestBackend, 1>::threeWayCmp(buf1(), buf2()); in TEST_F()
323 SizedOp<TestBackend, 15>::threeWayCmp(buf1(), buf2()); in TEST_F()
343 SizedOp<TestBackend, 16>::threeWayCmp(buf1(), buf2()); in TEST_F()
354 SizedOp<TestBackend, 16>::threeWayCmp(buf1(), buf2()); in TEST_F()
388 Skip<11>::Then<SizedOp<TestBackend, 1>>::threeWayCmp(buf1(), buf2()); in TEST_F()
436 Tail<_8>::threeWayCmp(buf1(), buf2(), 16); in TEST_F()