Exemple #1
0
	bool BinarizationAutoTest()
	{
		bool result = true;

		result = result && BinarizationAutoTest(FUNC1(Simd::Base::Binarization), FUNC1(SimdBinarization));

#ifdef SIMD_SSE2_ENABLE
        if(Simd::Sse2::Enable)
            result = result && BinarizationAutoTest(FUNC1(Simd::Sse2::Binarization), FUNC1(SimdBinarization));
#endif 

#ifdef SIMD_AVX2_ENABLE
        if(Simd::Avx2::Enable)
            result = result && BinarizationAutoTest(FUNC1(Simd::Avx2::Binarization), FUNC1(SimdBinarization));
#endif 

#ifdef SIMD_VMX_ENABLE
        if(Simd::Vmx::Enable)
            result = result && BinarizationAutoTest(FUNC1(Simd::Vmx::Binarization), FUNC1(SimdBinarization));
#endif 

#ifdef SIMD_NEON_ENABLE
		if (Simd::Neon::Enable)
			result = result && BinarizationAutoTest(FUNC1(Simd::Neon::Binarization), FUNC1(SimdBinarization));
#endif

        return result;
	}
Exemple #2
0
    bool TextureBoostedSaturatedGradientDataTest(bool create)
    {
        bool result = true;

        result = result && TextureBoostedSaturatedGradientDataTest(create, DW, DH, FUNC1(SimdTextureBoostedSaturatedGradient));

        return result;
    }
Exemple #3
0
    bool BinarizationDataTest(bool create)
    {
        bool result = true;

        Func1 f = FUNC1(SimdBinarization);
        for(SimdCompareType type = SimdCompareEqual; type <= SimdCompareLesserOrEqual && result; type = SimdCompareType(type + 1))
        {
            result = result && BinarizationDataTest(create, DW, DH, type, Func1(f.func, f.description + Data::Description(type)));
        }

        return result;
    }
Exemple #4
0
    bool TextureBoostedSaturatedGradientAutoTest()
    {
        bool result = true;

        result = result && TextureBoostedSaturatedGradientAutoTest(FUNC1(Simd::Base::TextureBoostedSaturatedGradient), FUNC1(SimdTextureBoostedSaturatedGradient));

#ifdef SIMD_SSE2_ENABLE
        if(Simd::Sse2::Enable)
            result = result && TextureBoostedSaturatedGradientAutoTest(FUNC1(Simd::Sse2::TextureBoostedSaturatedGradient), FUNC1(SimdTextureBoostedSaturatedGradient));
#endif 

#ifdef SIMD_SSSE3_ENABLE
        if(Simd::Ssse3::Enable)
            result = result && TextureBoostedSaturatedGradientAutoTest(FUNC1(Simd::Ssse3::TextureBoostedSaturatedGradient), FUNC1(SimdTextureBoostedSaturatedGradient));
#endif 

#ifdef SIMD_AVX2_ENABLE
        if(Simd::Avx2::Enable)
            result = result && TextureBoostedSaturatedGradientAutoTest(FUNC1(Simd::Avx2::TextureBoostedSaturatedGradient), FUNC1(SimdTextureBoostedSaturatedGradient));
#endif 

#ifdef SIMD_VMX_ENABLE
        if(Simd::Vmx::Enable)
            result = result && TextureBoostedSaturatedGradientAutoTest(FUNC1(Simd::Vmx::TextureBoostedSaturatedGradient), FUNC1(SimdTextureBoostedSaturatedGradient));
#endif 

#ifdef SIMD_NEON_ENABLE
		if (Simd::Neon::Enable)
			result = result && TextureBoostedSaturatedGradientAutoTest(FUNC1(Simd::Neon::TextureBoostedSaturatedGradient), FUNC1(SimdTextureBoostedSaturatedGradient));
#endif

        return result;
    }
Exemple #5
0
int main(void)
{
    const int i = FUNC1(1, 2);
    const int j = FUNC2(2);
    const int k = FUNC3(1, 2);
    const char * const str = FUNC4(foo);

    const int l = MANY_PARAMS1(1,1,1,1,1,1,1,1,1,1,
                               1,1,1,1,1,1,1,1,1,1,
                               1,1,1,1,1,1,1,1,1,1,
                               1);

    return MANY_PARAMS2(1,1,1,1,1,1,1,1,1,1,
                        1,1,1,1,1,1,1,1,1,1,
                        1,1,1,1,1,1,1,1,1,1,
                        1,1);
}
Exemple #6
0
static LispObject Tan(LispObject args)
{
    FUNC1(tan, args);
}
Exemple #7
0
static LispObject ArcCos(LispObject args)
{
    FUNC1(acos, args);
}
Exemple #8
0
void CqShaderVM::SO_cDv()
{
	AUTOFUNC;
	FUNC1( type_color, m_pEnv->SO_cDv );
}
Exemple #9
0
void CqShaderVM::SO_pnoise3()
{
	AUTOFUNC;
	FUNC1( type_point, m_pEnv->SO_pnoise3 );
}
Exemple #10
0
static LispObject Log(LispObject args)
{
    FUNC1(log, args);
}
Exemple #11
0
void CqShaderVM::SO_noise3()
{
	AUTOFUNC;
	FUNC1( type_float, m_pEnv->SO_fnoise3 );
}
Exemple #12
0
void CqShaderVM::SO_diffuse()
{
	VARFUNC;
	FUNC1( type_color, m_pEnv->SO_diffuse );
}
Exemple #13
0
static LispObject Exp(LispObject args)
{
    FUNC1(exp, args);
}
Exemple #14
0
void CqShaderVM::SO_calculatenormal()
{
	AUTOFUNC;
	FUNC1( type_normal, m_pEnv->SO_calculatenormal );
}
Exemple #15
0
void CqShaderVM::SO_sqrt()
{
	AUTOFUNC;
	FUNC1( type_float, m_pEnv->SO_sqrt );
}
Exemple #16
0
void CqShaderVM::SO_depth()
{
	AUTOFUNC;
	FUNC1( type_float, m_pEnv->SO_depth );
}
Exemple #17
0
void CqShaderVM::SO_exp()
{
	AUTOFUNC;
	FUNC1( type_float, m_pEnv->SO_exp );
}
Exemple #18
0
void CqShaderVM::SO_normalize()
{
	AUTOFUNC;
	FUNC1( type_vector, m_pEnv->SO_normalize );
}
Exemple #19
0
static LispObject ArcSin(LispObject args)
{
    FUNC1(asin, args);
}
Exemple #20
0
void CqShaderVM::SO_log()
{
	AUTOFUNC;
	FUNC1( type_float, m_pEnv->SO_log );
}
Exemple #21
0
static LispObject ArcTan(LispObject args)
{
    FUNC1(atan, args);
}
Exemple #22
0
void CqShaderVM::SO_abs()
{
	AUTOFUNC;
	FUNC1( type_float, m_pEnv->SO_abs );
}
Exemple #23
0
static LispObject Sqrt(LispObject args)
{
    FUNC1(sqrt, args);
}
Exemple #24
0
void CqShaderVM::SO_fDv()
{
	AUTOFUNC;
	FUNC1( type_float, m_pEnv->SO_fDv );
}
Exemple #25
0
static LispObject Log10(LispObject args)
{
    FUNC1(log10, args);
}
Exemple #26
0
static LispObject Cos(LispObject args)
{
    FUNC1(cos, args);
}
Exemple #27
0
void CqShaderVM::SO_pDv()
{
	AUTOFUNC;
	FUNC1( type_point, m_pEnv->SO_pDv );
}
Exemple #28
0
static LispObject Sin(LispObject args)
{
    FUNC1(sin, args);
}
Exemple #29
0
void CqShaderVM::SO_sign()
{
	AUTOFUNC;
	FUNC1( type_float, m_pEnv->SO_sign );
}
Exemple #30
0
void CqShaderVM::SO_cnoise3()
{
	AUTOFUNC;
	FUNC1( type_color, m_pEnv->SO_cnoise3 );
}