| /llvm-project-15.0.7/libc/src/string/memory_utils/ |
| H A D | algorithm.h | 56 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 D | backend_scalar.h | 50 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 D | sized_op.h | 140 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 D | backend_x86.h | 72 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 D | backends.h | 45 template <typename T> static int32_t threeWayCmp(T v1, T v2);
|
| /llvm-project-15.0.7/libc/test/src/string/memory_utils/ |
| H A D | backend_test.cpp | 59 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 D | algorithm_test.cpp | 64 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()
|