blob: 70dc5fec2d2129eb399c715fbed4992a0e24012e [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
uint tint_mod_u32(uint lhs, uint rhs) {
return (lhs - ((lhs / select(rhs, 1u, (rhs == 0u))) * select(rhs, 1u, (rhs == 0u))));
}
kernel void f() {
uint const a = 1u;
uint const b = 2u;
uint const r = tint_mod_u32(a, b);
}