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/Games/2048 | |
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/Games/2048')
-rw-r--r-- | Userland/Games/2048/GameSizeDialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Games/2048/GameSizeDialog.cpp b/Userland/Games/2048/GameSizeDialog.cpp index 4def92cb5e..0e1ca13312 100644 --- a/Userland/Games/2048/GameSizeDialog.cpp +++ b/Userland/Games/2048/GameSizeDialog.cpp @@ -6,17 +6,17 @@ #include "GameSizeDialog.h" #include "Game.h" +#include <AK/Math.h> #include <LibGUI/BoxLayout.h> #include <LibGUI/Button.h> #include <LibGUI/CheckBox.h> #include <LibGUI/Label.h> #include <LibGUI/SpinBox.h> -#include <math.h> GameSizeDialog::GameSizeDialog(GUI::Window* parent, size_t board_size, size_t target, bool evil_ai) : GUI::Dialog(parent) , m_board_size(board_size) - , m_target_tile_power(log2(target)) + , m_target_tile_power(AK::log2(target)) , m_evil_ai(evil_ai) { set_rect({ 0, 0, 250, 150 }); |