common: Resolve C4267 warning on MSVC

Also removes Timer::GetDoubleTime() as it is unused.
This commit is contained in:
Morph 2022-05-12 00:23:23 -04:00
parent 46c6e5c4c0
commit 1cc1c33a15
6 changed files with 7 additions and 28 deletions

View file

@ -158,10 +158,10 @@ struct ABIFrameInfo {
inline ABIFrameInfo ABI_CalculateFrameSize(std::bitset<32> regs, std::size_t rsp_alignment,
std::size_t needed_frame_size) {
int count = (regs & ABI_ALL_GPRS).count();
const auto count = (regs & ABI_ALL_GPRS).count();
rsp_alignment -= count * 8;
std::size_t subtraction = 0;
int xmm_count = (regs & ABI_ALL_XMMS).count();
const auto xmm_count = (regs & ABI_ALL_XMMS).count();
if (xmm_count) {
// If we have any XMMs to save, we must align the stack here.
subtraction = rsp_alignment & 0xF;