1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00

Tests for simd min/max

This commit is contained in:
Andrey Piskunov
2022-07-01 19:29:11 +03:00
parent 20f48fd730
commit 225f54fd79

View File

@@ -37,22 +37,19 @@
using namespace std; using namespace std;
template <typename T> template <typename T>
class SimdProcessorTypedTest : public testing::Test class SimdProcessorTypedTest : public testing::Test {
{ public:
public:
using IntegralType = T; using IntegralType = T;
#if TESTS_USING_SSE #if TESTS_USING_SSE
using SimdType = using SimdType = std::conditional_t<std::is_same<T, float>::value,
std::conditional_t<std::is_same<T, float>::value, simd::vi128f_wr, simd::vi128f_wr,
std::conditional_t<std::is_same<T, double>::value, simd::vi128d_wr, simd::vi128_wr>>; std::conditional_t<std::is_same<T, double>::value,
using Proc = typename simd::SimdFilterProcessor<SimdType, T>; simd::vi128d_wr,
#else simd::vi128_wr>>;
using SimdType = using Proc = typename simd::SimdFilterProcessor<SimdType, T>;
std::conditional_t<std::is_same<T, float>::value, simd::vi128f_wr, #else
std::conditional_t<std::is_same<T, double>::value, simd::vi128d_wr, using Proc = typename simd::SimdFilterProcessor<typename simd::TypeToVecWrapperType<T>::WrapperType, TypeParam>;
typename simd::TypeToVecWrapperType<T>::WrapperType>>; #endif
using Proc = typename simd::SimdFilterProcessor<SimdType, T>;
#endif
void SetUp() override void SetUp() override
{ {
} }