| #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; | |
| } |