#include <metal_stdlib> | |
using namespace metal; | |
struct frexp_result_f32 { | |
float fract; | |
int exp; | |
}; | |
kernel void tint_symbol() { | |
float const in = 1.25f; | |
frexp_result_f32 v = {}; | |
v.fract = frexp(in, v.exp); | |
frexp_result_f32 const res = v; | |
float const fract = res.fract; | |
int const exp = res.exp; | |
} |