blob: 1ae61c20bd31e2b8ccdbedf7bc8b41b0c90d87c3 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct frexp_result_vec2_f32 {
float2 fract;
int2 exp;
};
[[max_total_threads_per_threadgroup(1)]]
kernel void v() {
float2 const in = float2(1.25f, 3.75f);
frexp_result_vec2_f32 v_1 = {};
v_1.fract = frexp(in, v_1.exp);
frexp_result_vec2_f32 const res = v_1;
float2 const fract = res.fract;
int2 const exp = res.exp;
}