blob: c585bad119456e454cf399e4686e3ff7d6812db8 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
thread half4* u;
};
int4 tint_v4f16_to_v4i32(half4 value) {
return select(int4(2147483647), select(int4((-2147483647 - 1)), int4(value), (value >= half4(-65504.0h))), (value <= half4(65504.0h)));
}
void f(tint_module_vars_struct tint_module_vars) {
int4 const v = tint_v4f16_to_v4i32((*tint_module_vars.u));
}