Lines Matching defs:if_then_else

138     SI F if_then_else(I32 c, F t, F e) { return c ? t : e; }
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) {
946 return sk_bit_cast<V>(if_then_else(c, sk_bit_cast<F>(t), sk_bit_cast<F>(e)));
995 return if_then_else((x == 0)|(x == 1), x
1015 return if_then_else(denorm, F(0)
1036 return pack(if_then_else(denorm, U32(0)
1275 SI I32 cond_to_mask(I32 cond) { return if_then_else(cond, I32(~0), I32(0)); }
1441 return if_then_else(d == da, d + s*inv(da),
1442 if_then_else(s == 0, /* s + */ d*inv(sa),
1446 return if_then_else(d == 0, /* d + */ s*inv(da),
1447 if_then_else(s == sa, s + d*inv(sa),
1452 + if_then_else(two(s) <= sa, two(s*d), sa*da - two((da-d)*(sa-s)));
1456 + if_then_else(two(d) <= da, two(s*d), sa*da - two((da-d)*(sa-s)));
1460 F m = if_then_else(da > 0, d / da, 0),
1475 liteSrc = d*sa + da*(s2 - sa) * if_then_else(two(two(d)) <= da, darkDst, liteDst); // 2 or 3?
1476 return s*inv(da) + d*inv(sa) + if_then_else(s2 <= sa, darkSrc, liteSrc); // 1 or (2 or 3)?
1498 return if_then_else(sat == 0, 0, (c - mn) * s / sat);
1516 c = if_then_else(mn >= 0, c, l + (c - l) * ( l) / (l - mn) );
1517 c = if_then_else(mx > a, l + (c - l) * (a - l) / (mx - l), c);
1687 auto scale = if_then_else(1.0f/a < inf, 1.0f/a, 0);
1707 if_then_else(mx == mn, 0,
1708 if_then_else(mx == r, (g-b)*d_rcp + if_then_else(g < b, 6.0f, 0),
1709 if_then_else(mx == g, (b-r)*d_rcp + 2.0f,
1713 F s = if_then_else(mx == mn, 0,
1714 d / if_then_else(l > 0.5f, 2.0f-mx-mn, mx+mn));
1740 return if_then_else(a < da, min(cr, min(cg,cb))
1861 F r = if_then_else(v <= ctx->d, mad(ctx->c, v, ctx->f)
1906 F r = if_then_else(v*R <= 1, approx_powf(v*R, G)
1926 F r = if_then_else(v <= 1, R * approx_powf(v, G)
2469 idx += if_then_else(t >= c->ts[i], U32(1), U32(0));
2505 phi = if_then_else(xabs < yabs, 1.0f/4.0f - phi, phi);
2506 phi = if_then_else(X < 0.0f , 1.0f/2.0f - phi, phi);
2507 phi = if_then_else(Y < 0.0f , 1.0f - phi , phi);
2508 phi = if_then_else(phi != phi , 0 , phi); // Check for NaN.
2560 t = if_then_else(is_degenerate, F(0), t);
2567 t = if_then_else(is_degenerate, F(0), t);
3124 SI U16 if_then_else(I16 c, U16 t, U16 e) { return (t & c) | (e & ~c); }
3125 SI U32 if_then_else(I32 c, U32 t, U32 e) { return (t & c) | (e & ~c); }
3127 SI U16 max(U16 x, U16 y) { return if_then_else(x < y, y, x); }
3128 SI U16 min(U16 x, U16 y) { return if_then_else(x < y, x, y); }
3154 SI F if_then_else(I32 c, F t, F e) {
3157 SI F max(F x, F y) { return if_then_else(x < y, y, x); }
3158 SI F min(F x, F y) { return if_then_else(x < y, x, y); }
3160 SI I32 if_then_else(I32 c, I32 t, I32 e) {
3163 SI I32 max(I32 x, I32 y) { return if_then_else(x < y, y, x); }
3164 SI I32 min(I32 x, I32 y) { return if_then_else(x < y, x, y); }
3233 return roundtrip - if_then_else(roundtrip > x, F(1), F(0));
3440 if_then_else(2*s <= sa, 2*s*d, sa*da - 2*(sa-s)*(da-d)) );
3444 if_then_else(2*d <= da, 2*s*d, sa*da - 2*(sa-s)*(da-d)) );
3932 return if_then_else(a < da, min(cr, min(cg,cb))
4065 idx += if_then_else(t >= c->ts[i], U32(1), U32(0));
4203 phi = if_then_else(xabs < yabs, 1.0f/4.0f - phi, phi);
4204 phi = if_then_else(x < 0.0f , 1.0f/2.0f - phi, phi);
4205 phi = if_then_else(y < 0.0f , 1.0f - phi , phi);
4206 phi = if_then_else(phi != phi , 0 , phi); // Check for NaN.