1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +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,21 +37,18 @@
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,
simd::vi128d_wr,
simd::vi128_wr>>;
using Proc = typename simd::SimdFilterProcessor<SimdType, T>; using Proc = typename simd::SimdFilterProcessor<SimdType, T>;
#else #else
using SimdType = using Proc = typename simd::SimdFilterProcessor<typename simd::TypeToVecWrapperType<T>::WrapperType, TypeParam>;
std::conditional_t<std::is_same<T, float>::value, simd::vi128f_wr,
std::conditional_t<std::is_same<T, double>::value, simd::vi128d_wr,
typename simd::TypeToVecWrapperType<T>::WrapperType>>;
using Proc = typename simd::SimdFilterProcessor<SimdType, T>;
#endif #endif
void SetUp() override void SetUp() override
{ {