22 lines
383 B
Plaintext
22 lines
383 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
|
|
struct frexp_result {
|
|
float fract;
|
|
int exp;
|
|
};
|
|
frexp_result tint_frexp(float param_0) {
|
|
frexp_result result;
|
|
result.fract = frexp(param_0, result.exp);
|
|
return result;
|
|
}
|
|
|
|
kernel void tint_symbol() {
|
|
frexp_result const res = tint_frexp(1.230000019f);
|
|
int const exp = res.exp;
|
|
float const fract = res.fract;
|
|
return;
|
|
}
|
|
|