• Home
  • Raw
  • Download

Lines Matching refs:if_then_else

145     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()
746 return if_then_else(denorm, F(0) in from_half()
766 return pack(if_then_else(denorm, U32(0) in to_half()
993 SI I32 cond_to_mask(I32 cond) { return if_then_else(cond, I32(~0), I32(0)); } in cond_to_mask()
1133 return if_then_else(d == da, d + s*inv(da), in BLEND_MODE()
1134 if_then_else(s == 0, /* s + */ d*inv(sa), in BLEND_MODE()
1138 return if_then_else(d == 0, /* d + */ s*inv(da), in BLEND_MODE()
1139 if_then_else(s == sa, s + d*inv(sa), in BLEND_MODE()
1144 + if_then_else(two(s) <= sa, two(s*d), sa*da - two((da-d)*(sa-s))); in BLEND_MODE()
1148 + if_then_else(two(d) <= da, two(s*d), sa*da - two((da-d)*(sa-s))); in BLEND_MODE()
1152 F m = if_then_else(da > 0, d / da, 0), in BLEND_MODE()
1163 liteSrc = d*sa + da*(s2 - sa) * if_then_else(two(two(d)) <= da, darkDst, liteDst); // 2 or 3? in BLEND_MODE()
1164 return s*inv(da) + d*inv(sa) + if_then_else(s2 <= sa, darkSrc, liteSrc); // 1 or (2 or 3)? in BLEND_MODE()
1189 return if_then_else(sat == 0, 0, (c - mn) * s / sat); in set_sat()
1207 c = if_then_else(mn >= 0, c, l + (c - l) * ( l) / (l - mn) ); in clip_color()
1208 c = if_then_else(mx > a, l + (c - l) * (a - l) / (mx - l), c); in clip_color()
1379 auto scale = if_then_else(1.0f/a < inf, 1.0f/a, 0); in STAGE()
1395 if_then_else(mx == mn, 0, in STAGE()
1396 if_then_else(mx == r, (g-b)*d_rcp + if_then_else(g < b, 6.0f, 0), in STAGE()
1397 if_then_else(mx == g, (b-r)*d_rcp + 2.0f, in STAGE()
1401 F s = if_then_else(mx == mn, 0, in STAGE()
1402 d / if_then_else(l > 0.5f, 2.0f-mx-mn, mx+mn)); in STAGE()
1413 F q = l + if_then_else(l >= 0.5f, s - l*s, l*s), in STAGE()
1420 r = if_then_else(t >= 4/6.0f, r, p + (q-p)*(4.0f - 6.0f*t)); in STAGE()
1421 r = if_then_else(t >= 3/6.0f, r, q); in STAGE()
1422 r = if_then_else(t >= 1/6.0f, r, p + (q-p)*( 6.0f*t)); in STAGE()
1426 r = if_then_else(s == 0, l, hue_to_rgb(h + (1/3.0f))); in STAGE()
1427 g = if_then_else(s == 0, l, hue_to_rgb(h )); in STAGE()
1428 b = if_then_else(s == 0, l, hue_to_rgb(h - (1/3.0f))); in STAGE()
1433 return if_then_else(a < da, min(cr,cg,cb) in alpha_coverage_from_rgb_coverage()
1540 F r = if_then_else(v <= ctx->d, mad(ctx->c, v, ctx->f) in STAGE()
1566 return apply_sign(if_then_else(s < 0.055f, lo, hi), sign); in STAGE()
1595 return apply_sign(if_then_else(l < 0.00465985f, lo, hi), sign); in STAGE()
1961 idx += if_then_else(t >= c->ts[i], U32(1), U32(0)); in STAGE()
1998 phi = if_then_else(xabs < yabs, 1.0f/4.0f - phi, phi); in STAGE()
1999 phi = if_then_else(X < 0.0f , 1.0f/2.0f - phi, phi); in STAGE()
2000 phi = if_then_else(Y < 0.0f , 1.0f - phi , phi); in STAGE()
2001 phi = if_then_else(phi != phi , 0 , phi); // Check for NaN. in STAGE()
2053 t = if_then_else(is_degenerate, F(0), t); in STAGE()
2060 t = if_then_else(is_degenerate, F(0), t); in STAGE()
2449 SI U16 if_then_else(I16 c, U16 t, U16 e) { return (t & c) | (e & ~c); }
2450 SI U32 if_then_else(I32 c, U32 t, U32 e) { return (t & c) | (e & ~c); }
2452 SI U16 max(U16 x, U16 y) { return if_then_else(x < y, y, x); }
2453 SI U16 min(U16 x, U16 y) { return if_then_else(x < y, x, y); }
2481 SI F if_then_else(I32 c, F t, F e) {
2484 SI F max(F x, F y) { return if_then_else(x < y, y, x); }
2485 SI F min(F x, F y) { return if_then_else(x < y, x, y); }
2557 return roundtrip - if_then_else(roundtrip > x, F(1), F(0));
2717 if_then_else(2*s <= sa, 2*s*d, sa*da - 2*(sa-s)*(da-d)) );
2721 if_then_else(2*d <= da, 2*s*d, sa*da - 2*(sa-s)*(da-d)) );
3079 return if_then_else(a < da, min(cr,cg,cb)
3212 idx += if_then_else(t >= c->ts[i], U32(1), U32(0));
3251 phi = if_then_else(xabs < yabs, 1.0f/4.0f - phi, phi);
3252 phi = if_then_else(x < 0.0f , 1.0f/2.0f - phi, phi);
3253 phi = if_then_else(y < 0.0f , 1.0f - phi , phi);
3254 phi = if_then_else(phi != phi , 0 , phi); // Check for NaN.