Home
last modified time | relevance | path

Searched refs:if_then_else (Results 1 - 9 of 9) sorted by relevance

/third_party/skia/src/gpu/geometry/
H A 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(clip in projectedBounds()
[all...]
H A DGrPathUtils.cpp657 float2 tan0 = skvx::if_then_else(C != 0, C, p2 - p0); in findCubicConvex180Chops()
/third_party/skia/third_party/externals/libpng/intel/
H A 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()
/third_party/skia/third_party/externals/libpng/powerpc/
H A 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...]
/third_party/skia/src/opts/
H A DSkRasterPipeline_opts.h138 SI F if_then_else(I32 c, F t, F e) { return c ? t : e; } in if_then_else() function
211 SI F if_then_else(I32 c, F t, F e) { return vbslq_f32((U32)c,t,e); }
222 return roundtrip - if_then_else(roundtrip > v, 1, 0);
390 SI F if_then_else(I32 c, F t, F e) { return _mm256_blendv_ps(e,t,c); }
729 SI F if_then_else(I32 c, F t, F e) {
738 return roundtrip - if_then_else(roundtrip > v, 1, 0);
945 SI V if_then_else(I32 c, V t, V e) { in if_then_else() function
946 return sk_bit_cast<V>(if_then_else(c, sk_bit_cast<F>(t), sk_bit_cast<F>(e))); in if_then_else()
995 return if_then_else((x == 0)|(x == 1), x in approx_powf()
1015 return if_then_else(denor in from_half()
[all...]
H A DSkVM_opts.h297 CASE(Op::select): r[d].i32 = skvx::if_then_else(r[x].i32, r[y].i32, r[z].i32);
/third_party/skia/third_party/skcms/src/
H A DTransform_inl.h144 // sanitizer builds, so we make if_then_else() a macro to avoid
148 #define if_then_else(cond, t, e) ((cond) ? (t) : (e)) macro
151 SI T if_then_else(C cond, T t, T e) { in if_then_else() function
178 return if_then_else(em < 0x0400, F0, norm); in F_from_Half()
203 return cast<U16>(if_then_else(em < 0x38800000, (U32)F0 in Half_from_F()
231 SI F min_(F x, F y) { return if_then_else(x > y, y, x); } in min_()
232 SI F max_(F x, F y) { return if_then_else(x < y, y, x); } in max_()
256 return roundtrip - if_then_else(roundtrip > x, F1, F0); in floor_()
304 return if_then_else((x == F0) | (x == F1), x in approx_pow()
326 F v = if_then_else( in apply_tf()
[all...]
/third_party/skia/tests/
H A DSkVxTest.cpp83 REPORTER_ASSERT(r, all(if_then_else(float4{1,2,3,2} <= float4{2,2,2,2}, float4(42), float4(47)) in DEF_TEST()
245 REPORTER_ASSERT(r, all(skvx::if_then_else(int2(0,~0),
251 REPORTER_ASSERT(r, all(skvx::if_then_else(int2(0,~0).xyxy(),
/third_party/skia/include/private/
H A DSkVx.h436 // than if_then_else(), so it's sometimes useful to call it directly when we
443 SIT Vec<1,T> if_then_else(const Vec<1,M<T>>& cond, const Vec<1,T>& t, const Vec<1,T>& e) { in if_then_else() function
444 // In practice this scalar implementation is unlikely to be used. See next if_then_else(). in if_then_else()
448 SINT Vec<N,T> if_then_else(const Vec<N,M<T>>& cond, const Vec<N,T>& t, const Vec<N,T>& e) { in if_then_else() function
474 return join(if_then_else(cond.lo, t.lo, e.lo), in if_then_else()
475 if_then_else(cond.hi, t.hi, e.hi)); in if_then_else()
636 return cast<uint16_t>(if_then_else(is_denorm, Vec<N,uint32_t>(0) in to_half_finite_ftz()
644 return if_then_else(is_denorm, Vec<N,float>(0) in from_half_finite_ftz()
648 // Like if_then_else(), these N=1 base cases won't actually be used unless explicitly called.

Completed in 12 milliseconds