2021-07-23 16:43:01 +00:00
|
|
|
struct frexp_result {
|
|
|
|
float sig;
|
|
|
|
int exp;
|
|
|
|
};
|
|
|
|
frexp_result tint_frexp(float param_0) {
|
|
|
|
float exp;
|
|
|
|
float sig = frexp(param_0, exp);
|
|
|
|
frexp_result result = {sig, int(exp)};
|
|
|
|
return result;
|
2021-07-15 20:34:21 +00:00
|
|
|
}
|
|
|
|
|
2021-06-09 18:53:57 +00:00
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void main() {
|
2021-07-23 16:43:01 +00:00
|
|
|
const frexp_result res = tint_frexp(1.230000019f);
|
|
|
|
const int exp = res.exp;
|
|
|
|
const float sig = res.sig;
|
2021-06-09 18:53:57 +00:00
|
|
|
return;
|
|
|
|
}
|