summaryrefslogtreecommitdiffstats
path: root/src/tests/common/host_memory.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-25 04:09:12 +0200
committerGitHub <noreply@github.com>2021-06-25 04:09:12 +0200
commitb9c2732121e2594a64d1141807c7d5bd0f317d0f (patch)
tree700ab748e15d1e7d5cf7f58f2cbac133b7a84915 /src/tests/common/host_memory.cpp
parentMerge pull request #6522 from Morph1984/pragma (diff)
parentcommon: Replace common_sizes into user-literals (diff)
downloadyuzu-b9c2732121e2594a64d1141807c7d5bd0f317d0f.tar
yuzu-b9c2732121e2594a64d1141807c7d5bd0f317d0f.tar.gz
yuzu-b9c2732121e2594a64d1141807c7d5bd0f317d0f.tar.bz2
yuzu-b9c2732121e2594a64d1141807c7d5bd0f317d0f.tar.lz
yuzu-b9c2732121e2594a64d1141807c7d5bd0f317d0f.tar.xz
yuzu-b9c2732121e2594a64d1141807c7d5bd0f317d0f.tar.zst
yuzu-b9c2732121e2594a64d1141807c7d5bd0f317d0f.zip
Diffstat (limited to 'src/tests/common/host_memory.cpp')
-rw-r--r--src/tests/common/host_memory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/common/host_memory.cpp b/src/tests/common/host_memory.cpp
index e241f8be5..2dc7b5d5e 100644
--- a/src/tests/common/host_memory.cpp
+++ b/src/tests/common/host_memory.cpp
@@ -5,11 +5,13 @@
#include <catch2/catch.hpp>
#include "common/host_memory.h"
+#include "common/literals.h"
using Common::HostMemory;
+using namespace Common::Literals;
static constexpr size_t VIRTUAL_SIZE = 1ULL << 39;
-static constexpr size_t BACKING_SIZE = 4ULL * 1024 * 1024 * 1024;
+static constexpr size_t BACKING_SIZE = 4_GiB;
TEST_CASE("HostMemory: Initialize and deinitialize", "[common]") {
{ HostMemory mem(BACKING_SIZE, VIRTUAL_SIZE); }