From 4ab9936fc8e3ac76c8e85ecc16cd8214a3038765 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 22 Apr 2023 11:00:24 +0200 Subject: [PATCH] Added log10 to the Math class. --- 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 5ef67a8e5..09cd9dac3 100644 --- a/core/math/math_funcs.h +++ b/core/math/math_funcs.h @@ -108,6 +108,9 @@ public: static _ALWAYS_INLINE_ double log1p(double p_x) { return ::log1p(p_x); } static _ALWAYS_INLINE_ float log1p(float p_x) { return ::log1pf(p_x); } + static _ALWAYS_INLINE_ double log10(double p_x) { return ::log10f(p_x); } + static _ALWAYS_INLINE_ float log10(float p_x) { return ::log10(p_x); } + static _ALWAYS_INLINE_ double log2(double p_x) { return ::log2(p_x); } static _ALWAYS_INLINE_ float log2(float p_x) { return ::log2f(p_x); }