blob: d85fa99d776b2a0f710e80a59cc1f2365cf6d67a [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
uint tint_mod(uint lhs, uint rhs) {
return (lhs % select(rhs, 1u, (rhs == 0u)));
}
void f_inner(uint3 v) {
uint const l = (v[0] << (tint_mod(v[1], 1u) & 31u));
}
kernel void f(uint3 v [[thread_position_in_grid]]) {
f_inner(v);
return;
}