diff options
author | Hendiadyoin1 <leon2002.la@gmail.com> | 2021-07-17 18:29:28 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-07-19 16:34:21 +0430 |
commit | ed46d52252375be732841d980f9eec02ea7691f5 (patch) | |
tree | 60c8ff281cb3a07e2a33629184c6c0aec2a7f528 /Userland/Libraries/LibVideo | |
parent | c5f6ba6e71ee7ebce578828fd35ba119e9a6b41a (diff) | |
download | serenity-ed46d52252375be732841d980f9eec02ea7691f5.zip |
Everywhere: Use AK/Math.h if applicable
AK's version should see better inlining behaviors, than the LibM one.
We avoid mixed usage for now though.
Also clean up some stale math includes and improper floatingpoint usage.
Diffstat (limited to 'Userland/Libraries/LibVideo')
-rw-r--r-- | Userland/Libraries/LibVideo/MatroskaReader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibVideo/MatroskaReader.h b/Userland/Libraries/LibVideo/MatroskaReader.h index d3e0a6742c..33d23c3dd3 100644 --- a/Userland/Libraries/LibVideo/MatroskaReader.h +++ b/Userland/Libraries/LibVideo/MatroskaReader.h @@ -8,10 +8,10 @@ #include "MatroskaDocument.h" #include <AK/Debug.h> +#include <AK/Math.h> #include <AK/NonnullOwnPtrVector.h> #include <AK/Optional.h> #include <AK/OwnPtr.h> -#include <math.h> namespace Video { @@ -122,7 +122,7 @@ private: u8 next_octet = read_octet(); result = (result << 8u) | next_octet; } - result -= pow(2, length * 7 - 1) - 1; + result -= AK::exp2<i64>(length * 7 - 1) - 1; return result; } |