• Home
  • Raw
  • Download

Lines Matching refs:if_then_else

130     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()
1015 return pack(if_then_else(denorm, U32(0) in to_half()
1254 SI I32 cond_to_mask(I32 cond) { return if_then_else(cond, I32(~0), I32(0)); } in cond_to_mask()
1420 return if_then_else(d == da, d + s*inv(da), in BLEND_MODE()
1421 if_then_else(s == 0, /* s + */ d*inv(sa), in BLEND_MODE()
1425 return if_then_else(d == 0, /* d + */ s*inv(da), in BLEND_MODE()
1426 if_then_else(s == sa, s + d*inv(sa), in BLEND_MODE()
1431 + if_then_else(two(s) <= sa, two(s*d), sa*da - two((da-d)*(sa-s))); in BLEND_MODE()
1435 + if_then_else(two(d) <= da, two(s*d), sa*da - two((da-d)*(sa-s))); in BLEND_MODE()
1439 F m = if_then_else(da > 0, d / da, 0), in BLEND_MODE()
1454 liteSrc = d*sa + da*(s2 - sa) * if_then_else(two(two(d)) <= da, darkDst, liteDst); // 2 or 3? in BLEND_MODE()
1455 return s*inv(da) + d*inv(sa) + if_then_else(s2 <= sa, darkSrc, liteSrc); // 1 or (2 or 3)? in BLEND_MODE()
1477 return if_then_else(sat == 0, 0, (c - mn) * s / sat); in set_sat()
1495 c = if_then_else(mn >= 0, c, l + (c - l) * ( l) / (l - mn) ); in clip_color()
1496 c = if_then_else(mx > a, l + (c - l) * (a - l) / (mx - l), c); in clip_color()
1660 auto scale = if_then_else(1.0f/a < inf, 1.0f/a, 0); in STAGE()
1680 if_then_else(mx == mn, 0, in STAGE()
1681 if_then_else(mx == r, (g-b)*d_rcp + if_then_else(g < b, 6.0f, 0), in STAGE()
1682 if_then_else(mx == g, (b-r)*d_rcp + 2.0f, in STAGE()
1686 F s = if_then_else(mx == mn, 0, in STAGE()
1687 d / if_then_else(l > 0.5f, 2.0f-mx-mn, mx+mn)); in STAGE()
1713 return if_then_else(a < da, min(cr, min(cg,cb)) in alpha_coverage_from_rgb_coverage()
1834 F r = if_then_else(v <= ctx->d, mad(ctx->c, v, ctx->f) in STAGE()
1879 F r = if_then_else(v*R <= 1, approx_powf(v*R, G) in STAGE()
1899 F r = if_then_else(v <= 1, R * approx_powf(v, G) in STAGE()
2442 idx += if_then_else(t >= c->ts[i], U32(1), U32(0)); in STAGE()
2478 phi = if_then_else(xabs < yabs, 1.0f/4.0f - phi, phi); in STAGE()
2479 phi = if_then_else(X < 0.0f , 1.0f/2.0f - phi, phi); in STAGE()
2480 phi = if_then_else(Y < 0.0f , 1.0f - phi , phi); in STAGE()
2481 phi = if_then_else(phi != phi , 0 , phi); // Check for NaN. in STAGE()
2533 t = if_then_else(is_degenerate, F(0), t); in STAGE()
2540 t = if_then_else(is_degenerate, F(0), t); in STAGE()
3063 SI U16 if_then_else(I16 c, U16 t, U16 e) { return (t & c) | (e & ~c); }
3064 SI U32 if_then_else(I32 c, U32 t, U32 e) { return (t & c) | (e & ~c); }
3066 SI U16 max(U16 x, U16 y) { return if_then_else(x < y, y, x); }
3067 SI U16 min(U16 x, U16 y) { return if_then_else(x < y, x, y); }
3093 SI F if_then_else(I32 c, F t, F e) {
3096 SI F max(F x, F y) { return if_then_else(x < y, y, x); }
3097 SI F min(F x, F y) { return if_then_else(x < y, x, y); }
3177 return roundtrip - if_then_else(roundtrip > x, F(1), F(0));
3338 if_then_else(2*s <= sa, 2*s*d, sa*da - 2*(sa-s)*(da-d)) );
3342 if_then_else(2*d <= da, 2*s*d, sa*da - 2*(sa-s)*(da-d)) );
3817 return if_then_else(a < da, min(cr, min(cg,cb))
3950 idx += if_then_else(t >= c->ts[i], U32(1), U32(0));
3989 phi = if_then_else(xabs < yabs, 1.0f/4.0f - phi, phi);
3990 phi = if_then_else(x < 0.0f , 1.0f/2.0f - phi, phi);
3991 phi = if_then_else(y < 0.0f , 1.0f - phi , phi);
3992 phi = if_then_else(phi != phi , 0 , phi); // Check for NaN.