From bd6fdf3f2d9b5feecd4db67769bbb8e7c7176ff1 Mon Sep 17 00:00:00 2001 From: Eladash Date: Mon, 8 Jun 2020 06:59:09 +0300 Subject: [PATCH] rsx: Optimize rsx::rsx_iomap_table construction --- rpcs3/Emu/RSX/RSXThread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/RSXThread.h b/rpcs3/Emu/RSX/RSXThread.h index a86263308f..97691fdbf7 100644 --- a/rpcs3/Emu/RSX/RSXThread.h +++ b/rpcs3/Emu/RSX/RSXThread.h @@ -46,8 +46,8 @@ namespace rsx rsx_iomap_table() noexcept { - std::fill(ea.begin(), ea.end(), -1); - std::fill(io.begin(), io.end(), -1); + std::memset(ea.data(), -1, sizeof(ea)); + std::memset(io.data(), -1, sizeof(io)); } // Try to get the real address given a mapped address