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/Applications/Calculator | |
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/Applications/Calculator')
-rw-r--r-- | Userland/Applications/Calculator/Calculator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Calculator/Calculator.cpp b/Userland/Applications/Calculator/Calculator.cpp index 4532bb2541..a0972927a5 100644 --- a/Userland/Applications/Calculator/Calculator.cpp +++ b/Userland/Applications/Calculator/Calculator.cpp @@ -6,7 +6,7 @@ #include "Calculator.h" #include <AK/Assertions.h> -#include <math.h> +#include <AK/Math.h> Calculator::Calculator() { @@ -37,7 +37,7 @@ double Calculator::begin_operation(Operation operation, double argument) m_has_error = true; return argument; } - res = sqrt(argument); + res = AK::sqrt(argument); clear_operation(); break; case Operation::Inverse: |