D | SkVxTest.cpp | 25 using int4 = skvx::Vec<4,int32_t>; typedef 48 float4 IfThenElse(int4 c, float4 t, float4 e) { return if_then_else(c,t,e); } in IfThenElse() 60 int4 mask = float4{1,2,3,4} < float4{1,2,4,8}; in DEF_TEST() 84 REPORTER_ASSERT(r, all(int4{1,2,3,4,5} == int4{1,2,3,4})); in DEF_TEST() 85 REPORTER_ASSERT(r, all(int4{1,2,3,4} == int4{1,2,3,4})); in DEF_TEST() 86 REPORTER_ASSERT(r, all(int4{1,2,3} == int4{1,2,3,0})); in DEF_TEST() 87 REPORTER_ASSERT(r, all(int4{1,2} == int4{1,2,0,0})); in DEF_TEST() 88 REPORTER_ASSERT(r, all(int4{1} == int4{1,0,0,0})); in DEF_TEST() 89 REPORTER_ASSERT(r, all(int4(1) == int4{1,1,1,1})); in DEF_TEST() 90 REPORTER_ASSERT(r, all(int4{} == int4{0,0,0,0})); in DEF_TEST() [all …]
|