bool AveragingBinarizationAutoTest() { bool result = true; result = result && AveragingBinarizationAutoTest(FUNC2(Simd::Base::AveragingBinarization), FUNC2(SimdAveragingBinarization)); #ifdef SIMD_SSE2_ENABLE if(Simd::Sse2::Enable) result = result && AveragingBinarizationAutoTest(FUNC2(Simd::Sse2::AveragingBinarization), FUNC2(SimdAveragingBinarization)); #endif #ifdef SIMD_AVX2_ENABLE if(Simd::Avx2::Enable) result = result && AveragingBinarizationAutoTest(FUNC2(Simd::Avx2::AveragingBinarization), FUNC2(SimdAveragingBinarization)); #endif #ifdef SIMD_VMX_ENABLE if(Simd::Vmx::Enable) result = result && AveragingBinarizationAutoTest(FUNC2(Simd::Vmx::AveragingBinarization), FUNC2(SimdAveragingBinarization)); #endif #ifdef SIMD_NEON_ENABLE if (Simd::Neon::Enable) result = result && AveragingBinarizationAutoTest(FUNC2(Simd::Neon::AveragingBinarization), FUNC2(SimdAveragingBinarization)); #endif return result; }
bool TextureBoostedUvDataTest(bool create) { bool result = true; result = result && TextureBoostedUvDataTest(create, DW, DH, FUNC2(SimdTextureBoostedUv)); return result; }
bool AveragingBinarizationDataTest(bool create) { bool result = true; Func2 f = FUNC2(SimdAveragingBinarization); for(SimdCompareType type = SimdCompareEqual; type <= SimdCompareLesserOrEqual && result; type = SimdCompareType(type + 1)) { result = result && AveragingBinarizationDataTest(create, DW, DH, type, Func2(f.func, f.description + Data::Description(type))); } return result; }
bool TextureBoostedUvAutoTest() { bool result = true; result = result && TextureBoostedUvAutoTest(FUNC2(Simd::Base::TextureBoostedUv), FUNC2(SimdTextureBoostedUv)); #ifdef SIMD_SSE2_ENABLE if(Simd::Sse2::Enable) result = result && TextureBoostedUvAutoTest(FUNC2(Simd::Sse2::TextureBoostedUv), FUNC2(SimdTextureBoostedUv)); #endif #ifdef SIMD_AVX2_ENABLE if(Simd::Avx2::Enable) result = result && TextureBoostedUvAutoTest(FUNC2(Simd::Avx2::TextureBoostedUv), FUNC2(SimdTextureBoostedUv)); #endif #ifdef SIMD_VMX_ENABLE if(Simd::Vmx::Enable) result = result && TextureBoostedUvAutoTest(FUNC2(Simd::Vmx::TextureBoostedUv), FUNC2(SimdTextureBoostedUv)); #endif #ifdef SIMD_NEON_ENABLE if (Simd::Neon::Enable) result = result && TextureBoostedUvAutoTest(FUNC2(Simd::Neon::TextureBoostedUv), FUNC2(SimdTextureBoostedUv)); #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); }
ff(){ int a; int b; int c; a = 1; b = 2; c = a + b * b / (b - a); for( a = 0; a < 10; a = a + 1 ){ c = c+a; } a = 1; while( a <= 10 ){ c = c + a; a = a + 1; } if( a >= 10 ){ if( b == 2 ){ if( c > 0 ){ c = ( c + a * (c - b) ); } } } FUNC2(); }
void CqShaderVM::SO_trace() { VARFUNC; FUNC2( type_color, m_pEnv->SO_trace ); }
void CqShaderVM::SO_mtransform() { AUTOFUNC; FUNC2( type_matrix, m_pEnv->SO_mtransform ); }
void CqShaderVM::SO_ntransformm() { AUTOFUNC; FUNC2( type_normal, m_pEnv->SO_ntransformm ); }
void CqShaderVM::SO_fDeriv() { AUTOFUNC; FUNC2( type_float, m_pEnv->SO_fDeriv ); }
void CqShaderVM::SO_fsplinea() { AUTOFUNC; FUNC2( type_float, m_pEnv->SO_fsplinea ); }
void CqShaderVM::SO_psplinea() { AUTOFUNC; FUNC2( type_point, m_pEnv->SO_psplinea ); }
static LispObject Pow(LispObject args1, LispObject args2) { FUNC2(pow, args1, args2); }
void CqShaderVM::SO_distance() { AUTOFUNC; FUNC2( type_float, m_pEnv->SO_distance ); }
void CqShaderVM::SO_pnoise4() { AUTOFUNC; FUNC2( type_point, m_pEnv->SO_pnoise4 ); }
void CqShaderVM::SO_cnoise4() { AUTOFUNC; FUNC2( type_color, m_pEnv->SO_cnoise4 ); }
void CqShaderVM::SO_noise4() { AUTOFUNC; FUNC2( type_float, m_pEnv->SO_fnoise4 ); }
void CqShaderVM::SO_pDeriv() { AUTOFUNC; FUNC2( type_point, m_pEnv->SO_pDeriv ); }
void CqShaderVM::SO_cDeriv() { AUTOFUNC; FUNC2( type_color, m_pEnv->SO_cDeriv ); }
void CqShaderVM::SO_log2() { AUTOFUNC; FUNC2( type_float, m_pEnv->SO_log ); }
void CqShaderVM::SO_mod() { AUTOFUNC; FUNC2( type_float, m_pEnv->SO_mod ); }
void CqShaderVM::SO_faceforward() { AUTOFUNC; FUNC2( type_vector, m_pEnv->SO_faceforward ); }
static LispObject ArcTan2(LispObject args1, LispObject args2) { FUNC2(atan2, args1, args2); }
void CqShaderVM::SO_mscale() { AUTOFUNC; FUNC2( type_matrix, m_pEnv->SO_mscale ); }
void CqShaderVM::SO_csplinea() { AUTOFUNC; FUNC2( type_color, m_pEnv->SO_csplinea ); }
void CqShaderVM::SO_vtransformm() { AUTOFUNC; FUNC2( type_vector, m_pEnv->SO_vtransformm ); }
void CqShaderVM::SO_reflect() { AUTOFUNC; FUNC2( type_vector, m_pEnv->SO_reflect ); }
void CqShaderVM::SO_step() { AUTOFUNC; FUNC2( type_float, m_pEnv->SO_step ); }
int main (void) { gsl_ieee_env_setup (); gsl_rng_env_setup() ; r_global = gsl_rng_alloc (gsl_rng_default); #define FUNC(x) test_ ## x, "test gsl_ran_" #x #define FUNC2(x) test_ ## x, test_ ## x ## _pdf, "test gsl_ran_" #x test_shuffle() ; test_choose() ; testMoments (FUNC (ugaussian), 0.0, 100.0, 0.5); testMoments (FUNC (ugaussian), -1.0, 1.0, 0.6826895); testMoments (FUNC (ugaussian), 3.0, 3.5, 0.0011172689); testMoments (FUNC (ugaussian_tail), 3.0, 3.5, 0.0011172689/0.0013498981); testMoments (FUNC (exponential), 0.0, 1.0, 1- exp(-0.5)); testMoments (FUNC (cauchy), 0.0, 10000.0, 0.5); testMoments (FUNC (discrete1), -0.5, 0.5, 0.59 ); testMoments (FUNC (discrete1), 0.5, 1.5, 0.40 ); testMoments (FUNC (discrete1), 1.5, 3.5, 0.01 ); testPDF (FUNC2(beta)); testPDF (FUNC2(cauchy)); testPDF (FUNC2(chisq)); testPDF (FUNC2(erlang)); testPDF (FUNC2(exponential)); testPDF (FUNC2(exppow0)); testPDF (FUNC2(exppow1)); testPDF (FUNC2(exppow1a)); testPDF (FUNC2(exppow2)); testPDF (FUNC2(exppow2a)); testPDF (FUNC2(fdist)); testPDF (FUNC2(flat)); testPDF (FUNC2(gamma)); testPDF (FUNC2(gamma1)); testPDF (FUNC2(gamma_int)); testPDF (FUNC2(gamma_large)); testPDF (FUNC2(gaussian)); testPDF (FUNC2(gaussian_ratio_method)); testPDF (FUNC2(ugaussian)); testPDF (FUNC2(ugaussian_ratio_method)); testPDF (FUNC2(gaussian_tail)); testPDF (FUNC2(gaussian_tail1)); testPDF (FUNC2(gaussian_tail2)); testPDF (FUNC2(ugaussian_tail)); testPDF (FUNC2(bivariate_gaussian1)); testPDF (FUNC2(bivariate_gaussian2)); testPDF (FUNC2(bivariate_gaussian3)); testPDF (FUNC2(bivariate_gaussian4)); testPDF (FUNC2(gumbel1)); testPDF (FUNC2(gumbel2)); testPDF (FUNC2(landau)); testPDF (FUNC2(levy1)); testPDF (FUNC2(levy2)); testPDF (FUNC2(levy1a)); testPDF (FUNC2(levy2a)); testPDF (FUNC2(levy_skew1)); testPDF (FUNC2(levy_skew2)); testPDF (FUNC2(levy_skew1a)); testPDF (FUNC2(levy_skew2a)); testPDF (FUNC2(levy_skew1b)); testPDF (FUNC2(levy_skew2b)); testPDF (FUNC2(logistic)); testPDF (FUNC2(lognormal)); testPDF (FUNC2(pareto)); testPDF (FUNC2(rayleigh)); testPDF (FUNC2(rayleigh_tail)); testPDF (FUNC2(tdist1)); testPDF (FUNC2(tdist2)); testPDF (FUNC2(laplace)); testPDF (FUNC2(weibull)); testPDF (FUNC2(weibull1)); testPDF (FUNC2(dir2d)); testPDF (FUNC2(dir2d_trig_method)); testPDF (FUNC2(dir3dxy)); testPDF (FUNC2(dir3dyz)); testPDF (FUNC2(dir3dzx)); testDiscretePDF (FUNC2(discrete1)); testDiscretePDF (FUNC2(discrete2)); testDiscretePDF (FUNC2(poisson)); testDiscretePDF (FUNC2(poisson_large)); testDiscretePDF (FUNC2(bernoulli)); testDiscretePDF (FUNC2(binomial)); testDiscretePDF (FUNC2(binomial_large)); testDiscretePDF (FUNC2(geometric)); testDiscretePDF (FUNC2(geometric1)); testDiscretePDF (FUNC2(hypergeometric1)); testDiscretePDF (FUNC2(hypergeometric2)); testDiscretePDF (FUNC2(hypergeometric3)); testDiscretePDF (FUNC2(hypergeometric4)); testDiscretePDF (FUNC2(hypergeometric5)); testDiscretePDF (FUNC2(hypergeometric6)); testDiscretePDF (FUNC2(logarithmic)); testDiscretePDF (FUNC2(negative_binomial)); testDiscretePDF (FUNC2(pascal)); exit (gsl_test_summary()); }
void CqShaderVM::SO_transformm() { AUTOFUNC; FUNC2( type_point, m_pEnv->SO_transformm ); }