dan sinclair | b4697b76 | 2023-11-24 09:42:19 +0000 | [diff] [blame] | 1 | #include <metal_stdlib> |
2 | using namespace metal; | ||||
3 | struct frexp_result_f32 { | ||||
4 | float fract; | ||||
5 | int exp; | ||||
6 | }; | ||||
dan sinclair | f1f381a | 2023-11-22 09:44:15 +0000 | [diff] [blame] | 7 | |
dan sinclair | b4697b76 | 2023-11-24 09:42:19 +0000 | [diff] [blame] | 8 | kernel void tint_symbol() { |
9 | frexp_result_f32 const res = frexp_result_f32{.fract=0.61500000953674316406f, .exp=1}; | ||||
10 | int const exp = res.exp; | ||||
11 | float const fract = res.fract; | ||||
12 | } |