diff --git a/source/Math/Logarithm.cpp b/source/Math/Logarithm.cpp index 9aa7f03..4fe83eb 100644 --- a/source/Math/Logarithm.cpp +++ b/source/Math/Logarithm.cpp @@ -5,8 +5,6 @@ namespace sp { -#define LOG2INBASE10 0.30102999566f - double math::log(double base, double value) { return ::log10(value) / ::log10(base); @@ -14,7 +12,7 @@ double math::log(double base, double value) { double math::log2(double value) { - return ::log10(value) / LOG2INBASE10; + return ::log2(value); } } // namespace sp