blob: 98aa1081a3c70758708e39e1e5b005555b0e214a [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
uint tint_mod(uint lhs, uint rhs) {
return (lhs % select(rhs, 1u, (rhs == 0u)));
}
kernel void f() {
uint a = 1u;
uint b = 0u;
uint const r = tint_mod(a, b);
return;
}