https://git.reactos.org/?p=reactos.git;a=commitdiff;h=86a0852ffb6576bae9dae6ba4dcdb2abcd638f05
commit 86a0852ffb6576bae9dae6ba4dcdb2abcd638f05 Author: Jérôme Gardou <jerome.gar...@reactos.org> AuthorDate: Mon Sep 21 16:54:39 2020 +0200 Commit: Jérôme Gardou <jerome.gar...@reactos.org> CommitDate: Thu Feb 4 16:37:01 2021 +0100 [SDK/CRT] Provide inline implementation of log2 --- sdk/include/crt/math.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/include/crt/math.h b/sdk/include/crt/math.h index b6ab12c8313..f565491ad6a 100644 --- a/sdk/include/crt/math.h +++ b/sdk/include/crt/math.h @@ -270,6 +270,7 @@ _Check_return_ __CRT_INLINE long lrintl(_In_ long double x) { return (long)((x < _Check_return_ __CRT_INLINE long long llrint(_In_ double x) { return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); } _Check_return_ __CRT_INLINE long long llrintf(_In_ float x) { return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); } _Check_return_ __CRT_INLINE long long llrintl(_In_ long double x) { return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); } +_Check_return_ __CRT_INLINE double log2(_In_ double x) { return log(x) / log(2); } #ifndef NO_OLDNAMES /* !__STDC__ */