2021-07-08 21:21:27 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
2021-07-23 16:43:01 +00:00
|
|
|
|
2022-11-23 19:57:00 +00:00
|
|
|
struct frexp_result_f32 {
|
2022-11-14 15:29:29 +00:00
|
|
|
float fract;
|
2021-07-23 16:43:01 +00:00
|
|
|
int exp;
|
|
|
|
};
|
2021-07-08 21:21:27 +00:00
|
|
|
kernel void tint_symbol() {
|
2023-03-02 21:28:45 +00:00
|
|
|
frexp_result_f32 const res = frexp_result_f32{.fract=0.61500000953674316406f, .exp=1};
|
2021-07-23 16:43:01 +00:00
|
|
|
int const exp = res.exp;
|
2022-11-14 15:29:29 +00:00
|
|
|
float const fract = res.fract;
|
2021-07-08 21:21:27 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|