blob: 78afbf9b94734505bf7f1e2d3a65cba69f9ed7c2 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct modf_result_f32 {
float fract;
float whole;
};
kernel void v() {
float const in = 1.25f;
modf_result_f32 v_1 = {};
v_1.fract = modf(in, v_1.whole);
modf_result_f32 const res = v_1;
float const fract = res.fract;
float const whole = res.whole;
}