diff options
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 06ec77daae..6a5e12c3ce 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 { |