blob: 487685bb7483f7f06bf4aaa4120290ccae3cb8c3 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_private_vars_struct {
float u;
};
int tint_ftoi(float v) {
return select(2147483647, select(int(v), (-2147483647 - 1), (v < -2147483648.0f)), (v < 2147483520.0f));
}
void f(thread tint_private_vars_struct* const tint_private_vars) {
int const v = tint_ftoi((*(tint_private_vars)).u);
}