summaryrefslogtreecommitdiffstats
path: root/src/tests/common
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2021-01-15 08:48:58 +0100
committerGitHub <noreply@github.com>2021-01-15 08:48:58 +0100
commit5b9aedfc215e2f7227a8604d2d28fb462949d537 (patch)
treeed1f105b1fef3fc9a5209c5106accaaee283ebf2 /src/tests/common
parentMerge pull request #5354 from ReinUsesLisp/remove-common-color (diff)
parentcommon/bit_util: Replace CLZ/CTZ operations with standardized ones (diff)
downloadyuzu-5b9aedfc215e2f7227a8604d2d28fb462949d537.tar
yuzu-5b9aedfc215e2f7227a8604d2d28fb462949d537.tar.gz
yuzu-5b9aedfc215e2f7227a8604d2d28fb462949d537.tar.bz2
yuzu-5b9aedfc215e2f7227a8604d2d28fb462949d537.tar.lz
yuzu-5b9aedfc215e2f7227a8604d2d28fb462949d537.tar.xz
yuzu-5b9aedfc215e2f7227a8604d2d28fb462949d537.tar.zst
yuzu-5b9aedfc215e2f7227a8604d2d28fb462949d537.zip
Diffstat (limited to 'src/tests/common')
-rw-r--r--src/tests/common/bit_utils.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/tests/common/bit_utils.cpp b/src/tests/common/bit_utils.cpp
deleted file mode 100644
index 479b5995a..000000000
--- a/src/tests/common/bit_utils.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2017 Citra Emulator Project
-// Licensed under GPLv2 or any later version
-// Refer to the license.txt file included.
-
-#include <catch2/catch.hpp>
-#include <math.h>
-#include "common/bit_util.h"
-
-namespace Common {
-
-TEST_CASE("BitUtils::CountTrailingZeroes", "[common]") {
- REQUIRE(Common::CountTrailingZeroes32(0) == 32);
- REQUIRE(Common::CountTrailingZeroes64(0) == 64);
- REQUIRE(Common::CountTrailingZeroes32(9) == 0);
- REQUIRE(Common::CountTrailingZeroes32(8) == 3);
- REQUIRE(Common::CountTrailingZeroes32(0x801000) == 12);
- REQUIRE(Common::CountTrailingZeroes64(9) == 0);
- REQUIRE(Common::CountTrailingZeroes64(8) == 3);
- REQUIRE(Common::CountTrailingZeroes64(0x801000) == 12);
- REQUIRE(Common::CountTrailingZeroes64(0x801000000000UL) == 36);
-}
-
-} // namespace Common