diff options
| author | Juan Linietsky | 2017-05-26 21:49:49 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-05-26 22:31:32 -0300 |
| commit | f89641907f8b45941f5e67891936ee8050a3ef92 (patch) | |
| tree | a292e88719ad488fe75a7c2f3fe1e49d277f0c70 /core/math/math_funcs.h | |
| parent | 41918f328a96f8ef27587c016ca047f8d31f933e (diff) | |
| download | godot-f89641907f8b45941f5e67891936ee8050a3ef92.tar.gz godot-f89641907f8b45941f5e67891936ee8050a3ef92.tar.zst godot-f89641907f8b45941f5e67891936ee8050a3ef92.zip | |
Diffstat (limited to 'core/math/math_funcs.h')
| -rw-r--r-- | core/math/math_funcs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h index 06ec77daa..6a5e12c3c 100644 --- a/core/math/math_funcs.h +++ b/core/math/math_funcs.h @@ -278,6 +278,10 @@ public: return u.f32; } + static _ALWAYS_INLINE_ float half_to_float(const uint16_t h) { + return halfptr_to_float(&h); + } + static _ALWAYS_INLINE_ uint16_t make_half_float(float f) { union { |
