From e17cc864bc339c1f4d1ce6acd4cabf4a6593c6cc Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 18 Mar 2024 11:04:37 +0100 Subject: [PATCH] Added exp2 to the Math singleton. --- core/math/math_funcs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h index d90a98bcc..5abdf5032 100644 --- a/core/math/math_funcs.h +++ b/core/math/math_funcs.h @@ -127,6 +127,9 @@ public: static _ALWAYS_INLINE_ double exp(double p_x) { return ::exp(p_x); } static _ALWAYS_INLINE_ float exp(float p_x) { return ::expf(p_x); } + static _ALWAYS_INLINE_ double exp2(double p_x) { return ::exp2(p_x); } + static _ALWAYS_INLINE_ float exp2(float p_x) { return ::exp2f(p_x); } + static _ALWAYS_INLINE_ double erf(double p_x) { return ::erf(p_x); } static _ALWAYS_INLINE_ float erf(float p_x) { return ::erff(p_x); }