blob: ca63e8305da9dfbb510e575cdca4de44085f0f0c [file] [log] [blame]
float16_t tint_trunc(float16_t param_0) {
return param_0 < 0 ? ceil(param_0) : floor(param_0);
}
float16_t tint_float_mod(float16_t lhs, float16_t rhs) {
return (lhs - (tint_trunc((lhs / rhs)) * rhs));
}
[numthreads(1, 1, 1)]
void f() {
const float16_t a = float16_t(1.0h);
const float16_t b = float16_t(2.0h);
const float16_t r = tint_float_mod(a, b);
return;
}