blob: 0b3019fe9e771f17b4a23f0ff20e52fd3a3e527a [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct frexp_result_f32 {
float fract;
int exp;
};
kernel void tint_symbol() {
float const runtime_in = 1.25f;
frexp_result_f32 res = frexp_result_f32{.fract=0.625f, .exp=1};
frexp_result_f32 v = {};
v.fract = frexp(runtime_in, v.exp);
res = v;
res = frexp_result_f32{.fract=0.625f, .exp=1};
float const fract = res.fract;
int const exp = res.exp;
}