Files
FEX-Emu--FEX/FEXCore/unittests/APITests/ILog2.cpp
T
Alyssa Rosenzweig af21b8f3c7 Move External/FEXCore/ to FEXCore/
It is not an external component, and it makes paths needlessly long.
Ryan seemed amenable to this when we discussed on IRC earlier.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
2023-08-17 16:32:16 -04:00

8 lines
167 B
C++

#include <FEXCore/Utils/MathUtils.h>
#include <catch2/catch.hpp>
TEST_CASE("ILog2") {
auto i = GENERATE(range(0, 64));
REQUIRE(FEXCore::ilog2(1ull << i) == i);
}