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