bool HistogramMaskedAutoTest() { bool result = true; result = result && HistogramMaskedAutoTest(FUNC_HM(Simd::Base::HistogramMasked), FUNC_HM(SimdHistogramMasked)); #ifdef SIMD_SSE2_ENABLE if(Simd::Sse2::Enable) result = result && HistogramMaskedAutoTest(FUNC_HM(Simd::Sse2::HistogramMasked), FUNC_HM(SimdHistogramMasked)); #endif #ifdef SIMD_AVX2_ENABLE if(Simd::Avx2::Enable) result = result && HistogramMaskedAutoTest(FUNC_HM(Simd::Avx2::HistogramMasked), FUNC_HM(SimdHistogramMasked)); #endif #ifdef SIMD_VMX_ENABLE if(Simd::Vmx::Enable) result = result && HistogramMaskedAutoTest(FUNC_HM(Simd::Vmx::HistogramMasked), FUNC_HM(SimdHistogramMasked)); #endif #ifdef SIMD_NEON_ENABLE if (Simd::Neon::Enable) result = result && HistogramMaskedAutoTest(FUNC_HM(Simd::Neon::HistogramMasked), FUNC_HM(SimdHistogramMasked)); #endif return result; }
bool HistogramMaskedAutoTest(const FuncHM & f1, const FuncHM & f2) { bool result = true; result = result && HistogramMaskedAutoTest(W, H, f1, f2); result = result && HistogramMaskedAutoTest(W + O, H - O, f1, f2); result = result && HistogramMaskedAutoTest(W - O, H + O, f1, f2); return result; }
bool HistogramMaskedAutoTest() { bool result = true; result = result && HistogramMaskedAutoTest(FUNC_HM(Simd::Base::HistogramMasked), FUNC_HM(SimdHistogramMasked)); return result; }