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; }
bool TextureBoostedSaturatedGradientDataTest(bool create) { bool result = true; result = result && TextureBoostedSaturatedGradientDataTest(create, DW, DH, FUNC1(SimdTextureBoostedSaturatedGradient)); return result; }
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; }
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; }
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); }
static LispObject Tan(LispObject args) { FUNC1(tan, args); }
static LispObject ArcCos(LispObject args) { FUNC1(acos, args); }
void CqShaderVM::SO_cDv() { AUTOFUNC; FUNC1( type_color, m_pEnv->SO_cDv ); }
void CqShaderVM::SO_pnoise3() { AUTOFUNC; FUNC1( type_point, m_pEnv->SO_pnoise3 ); }
static LispObject Log(LispObject args) { FUNC1(log, args); }
void CqShaderVM::SO_noise3() { AUTOFUNC; FUNC1( type_float, m_pEnv->SO_fnoise3 ); }
void CqShaderVM::SO_diffuse() { VARFUNC; FUNC1( type_color, m_pEnv->SO_diffuse ); }
static LispObject Exp(LispObject args) { FUNC1(exp, args); }
void CqShaderVM::SO_calculatenormal() { AUTOFUNC; FUNC1( type_normal, m_pEnv->SO_calculatenormal ); }
void CqShaderVM::SO_sqrt() { AUTOFUNC; FUNC1( type_float, m_pEnv->SO_sqrt ); }
void CqShaderVM::SO_depth() { AUTOFUNC; FUNC1( type_float, m_pEnv->SO_depth ); }
void CqShaderVM::SO_exp() { AUTOFUNC; FUNC1( type_float, m_pEnv->SO_exp ); }
void CqShaderVM::SO_normalize() { AUTOFUNC; FUNC1( type_vector, m_pEnv->SO_normalize ); }
static LispObject ArcSin(LispObject args) { FUNC1(asin, args); }
void CqShaderVM::SO_log() { AUTOFUNC; FUNC1( type_float, m_pEnv->SO_log ); }
static LispObject ArcTan(LispObject args) { FUNC1(atan, args); }
void CqShaderVM::SO_abs() { AUTOFUNC; FUNC1( type_float, m_pEnv->SO_abs ); }
static LispObject Sqrt(LispObject args) { FUNC1(sqrt, args); }
void CqShaderVM::SO_fDv() { AUTOFUNC; FUNC1( type_float, m_pEnv->SO_fDv ); }
static LispObject Log10(LispObject args) { FUNC1(log10, args); }
static LispObject Cos(LispObject args) { FUNC1(cos, args); }
void CqShaderVM::SO_pDv() { AUTOFUNC; FUNC1( type_point, m_pEnv->SO_pDv ); }
static LispObject Sin(LispObject args) { FUNC1(sin, args); }
void CqShaderVM::SO_sign() { AUTOFUNC; FUNC1( type_float, m_pEnv->SO_sign ); }
void CqShaderVM::SO_cnoise3() { AUTOFUNC; FUNC1( type_color, m_pEnv->SO_cnoise3 ); }