blob: 226bac9077c21e8e873cfbae125b1a999bdef7db [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
thread float* u;
};
uint tint_f32_to_u32(float value) {
return select(4294967295u, select(0u, uint(value), (value >= 0.0f)), (value <= 4294967040.0f));
}
void f(tint_module_vars_struct tint_module_vars) {
uint const v = tint_f32_to_u32((*tint_module_vars.u));
}