Home
last modified time | relevance | path

Searched refs:if_then_else (Results 1 – 14 of 14) sorted by relevance

/external/skia/src/gpu/geometry/
DGrQuadUtils.cpp50 *e1 = if_then_else(bad, -next_diag(*e1), *e1); in correct_bad_edges()
51 *e2 = if_then_else(bad, -next_diag(*e2), *e2); in correct_bad_edges()
53 *e3 = if_then_else(bad, -next_diag(*e3), *e3); in correct_bad_edges()
61 *c1 = if_then_else(bad, next_ccw(*c1), *c1); in correct_bad_coords()
62 *c2 = if_then_else(bad, next_ccw(*c2), *c2); in correct_bad_coords()
64 *c3 = if_then_else(bad, next_ccw(*c3), *c3); in correct_bad_coords()
328 min(if_then_else(clipW, V4f(SK_ScalarInfinity), x2d)), in projectedBounds()
329 min(if_then_else(clipW, V4f(SK_ScalarInfinity), y2d)), in projectedBounds()
330 max(if_then_else(clipW, V4f(SK_ScalarNegativeInfinity), x2d)), in projectedBounds()
331 max(if_then_else(clipW, V4f(SK_ScalarNegativeInfinity), y2d)) in projectedBounds()
[all …]
DGrPathUtils.cpp657 float2 tan0 = skvx::if_then_else(C != 0, C, p2 - p0); in findCubicConvex180Chops()
/external/pdfium/third_party/libpng16/intel/
Dfilter_sse2_intrinsics.c221 static __m128i if_then_else(__m128i c, __m128i t, __m128i e) { in if_then_else() function
278 nearest = if_then_else(_mm_cmpeq_epi16(smallest, pa), a, in png_read_filter_row_paeth3_sse2()
279 if_then_else(_mm_cmpeq_epi16(smallest, pb), b, in png_read_filter_row_paeth3_sse2()
314 nearest = if_then_else(_mm_cmpeq_epi16(smallest, pa), a, in png_read_filter_row_paeth3_sse2()
315 if_then_else(_mm_cmpeq_epi16(smallest, pb), b, in png_read_filter_row_paeth3_sse2()
376 nearest = if_then_else(_mm_cmpeq_epi16(smallest, pa), a, in png_read_filter_row_paeth4_sse2()
377 if_then_else(_mm_cmpeq_epi16(smallest, pb), b, in png_read_filter_row_paeth4_sse2()
/external/libpng/intel/
Dfilter_sse2_intrinsics.c221 static __m128i if_then_else(__m128i c, __m128i t, __m128i e) { in if_then_else() function
278 nearest = if_then_else(_mm_cmpeq_epi16(smallest, pa), a, in png_read_filter_row_paeth3_sse2()
279 if_then_else(_mm_cmpeq_epi16(smallest, pb), b, in png_read_filter_row_paeth3_sse2()
314 nearest = if_then_else(_mm_cmpeq_epi16(smallest, pa), a, in png_read_filter_row_paeth3_sse2()
315 if_then_else(_mm_cmpeq_epi16(smallest, pb), b, in png_read_filter_row_paeth3_sse2()
376 nearest = if_then_else(_mm_cmpeq_epi16(smallest, pa), a, in png_read_filter_row_paeth4_sse2()
377 if_then_else(_mm_cmpeq_epi16(smallest, pb), b, in png_read_filter_row_paeth4_sse2()
/external/libpng/powerpc/
Dfilter_vsx_intrinsics.c483 #define if_then_else(c,t,e) vec_sel(e,t,c) macro
553 nearest_vec = if_then_else( in png_read_filter_row_paeth4_vsx()
556 if_then_else( in png_read_filter_row_paeth4_vsx()
574 nearest_vec = if_then_else( in png_read_filter_row_paeth4_vsx()
577 if_then_else( in png_read_filter_row_paeth4_vsx()
595 nearest_vec = if_then_else( in png_read_filter_row_paeth4_vsx()
598 if_then_else( in png_read_filter_row_paeth4_vsx()
673 nearest_vec = if_then_else( in png_read_filter_row_paeth3_vsx()
676 if_then_else( in png_read_filter_row_paeth3_vsx()
694 nearest_vec = if_then_else( in png_read_filter_row_paeth3_vsx()
[all …]
/external/skqp/src/opts/
DSkRasterPipeline_opts.h145 SI F if_then_else(I32 c, F t, F e) { return c ? t : e; } in if_then_else() function
200 SI F if_then_else(I32 c, F t, F e) { return vbslq_f32((U32)c,t,e); }
211 return roundtrip - if_then_else(roundtrip > v, 1, 0);
328 SI F if_then_else(I32 c, F t, F e) { return _mm256_blendv_ps(e,t,c); }
539 SI F if_then_else(I32 c, F t, F e) {
548 return roundtrip - if_then_else(roundtrip > v, 1, 0);
684 SI V if_then_else(I32 c, V t, V e) { in if_then_else() function
685 return bit_cast<V>(if_then_else(c, bit_cast<F>(t), bit_cast<F>(e))); in if_then_else()
724 return if_then_else((x == 0) , 0 in approx_powf()
726 return if_then_else((x == 0)|(x == 1), x in approx_powf()
[all …]
/external/skia/src/opts/
DSkRasterPipeline_opts.h130 SI F if_then_else(I32 c, F t, F e) { return c ? t : e; } in if_then_else() function
201 SI F if_then_else(I32 c, F t, F e) { return vbslq_f32((U32)c,t,e); }
212 return roundtrip - if_then_else(roundtrip > v, 1, 0);
371 SI F if_then_else(I32 c, F t, F e) { return _mm256_blendv_ps(e,t,c); }
708 SI F if_then_else(I32 c, F t, F e) {
717 return roundtrip - if_then_else(roundtrip > v, 1, 0);
924 SI V if_then_else(I32 c, V t, V e) { in if_then_else() function
925 return sk_bit_cast<V>(if_then_else(c, sk_bit_cast<F>(t), sk_bit_cast<F>(e))); in if_then_else()
974 return if_then_else((x == 0)|(x == 1), x in approx_powf()
994 return if_then_else(denorm, F(0) in from_half()
[all …]
DSkVM_opts.h255 CASE(Op::select): r[d].i32 = skvx::if_then_else(r[x].i32, r[y].i32, r[z].i32); in interpret_skvm()
/external/skia/third_party/skcms/src/
DTransform_inl.h144 #define if_then_else(cond, t, e) ((cond) ? (t) : (e)) macro
147 SI T if_then_else(C cond, T t, T e) { in if_then_else() function
174 return if_then_else(em < 0x0400, F0, norm); in F_from_Half()
199 return cast<U16>(if_then_else(em < 0x38800000, (U32)F0 in Half_from_F()
227 SI F min_(F x, F y) { return if_then_else(x > y, y, x); } in min_()
228 SI F max_(F x, F y) { return if_then_else(x < y, y, x); } in max_()
252 return roundtrip - if_then_else(roundtrip > x, F1, F0); in floor_()
300 return if_then_else((x == F0) | (x == F1), x in approx_pow()
322 F v = if_then_else(x < tf->d, tf->c*x + tf->f in apply_tf()
361 F v = if_then_else(x*R <= 1, approx_pow(x*R, G) in apply_hlg()
[all …]
/external/skqp/third_party/skcms/src/
DTransform_inl.h129 SI T if_then_else(I32 cond, T t, T e) { in if_then_else() function
156 return if_then_else(em < 0x0400, F0, norm); in F_from_Half()
179 return cast<U16>(if_then_else(em < 0x38800000, (U32)F0 in Half_from_F()
200 SI F min_(F x, F y) { return if_then_else(x > y, y, x); } in min_()
201 SI F max_(F x, F y) { return if_then_else(x < y, y, x); } in max_()
219 return roundtrip - if_then_else(roundtrip > x, F1, F0); in floor_()
250 return if_then_else((x == F0) | (x == F1), x in approx_pow()
262 F v = if_then_else(x < tf->d, tf->c*x + tf->f in apply_tf()
907 F scale = if_then_else(F1 / a < INFINITY_, F1 / a, F0); in exec_ops()
950 X = if_then_else(X*X*X > 0.008856f, X*X*X, (X - (16/116.0f)) * (1/7.787f)); in exec_ops()
[all …]
/external/skia/include/private/
DSkVx.h379 SIT Vec<1,T> if_then_else(const Vec<1,M<T>>& cond, const Vec<1,T>& t, const Vec<1,T>& e) {
384 SINT Vec<N,T> if_then_else(const Vec<N,M<T>>& cond, const Vec<N,T>& t, const Vec<N,T>& e) {
410 return join(if_then_else(cond.lo, t.lo, e.lo),
411 if_then_else(cond.hi, t.hi, e.hi));
572 return cast<uint16_t>(if_then_else(is_denorm, Vec<N,uint32_t>(0)
580 return if_then_else(is_denorm, Vec<N,float>(0)
/external/skia/tests/
DSkVxTest.cpp78 REPORTER_ASSERT(r, all(if_then_else(float4{1,2,3,2} <= float4{2,2,2,2}, float4(42), float4(47)) in DEF_TEST()
/external/llvm-project/llvm/test/CodeGen/AMDGPU/
Dmode-register.mir427 # CHECK-LABEL: name: if_then_else
433 name: if_then_else
/external/skia/src/gpu/tessellate/
DGrStrokeIndirectTessellator.cpp42 return skvx::if_then_else(skvx::join(both, both), t, e); in if_both_then_else()