From 392a0e99bf50d6d7b9619b02e4f40a5d7a88ec46 Mon Sep 17 00:00:00 2001 From: Dario Date: Mon, 16 Dec 2024 13:20:19 -0300 Subject: [PATCH] Bitscan forward. --- UnleashedRecomp/install/xex_patcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UnleashedRecomp/install/xex_patcher.cpp b/UnleashedRecomp/install/xex_patcher.cpp index 8d2ea1b6..4e35c1cb 100644 --- a/UnleashedRecomp/install/xex_patcher.cpp +++ b/UnleashedRecomp/install/xex_patcher.cpp @@ -308,14 +308,14 @@ inline bool bitScanForward(uint64_t v, uint32_t *outFirstSetIndex) inline bool bitScanForward(uint32_t v, uint32_t *outFirstSetIndex) { int i = ffs(v); - *out_first_set_index = i - 1; + *outFirstSetIndex = i - 1; return i != 0; } inline bool bitScanForward(uint64_t v, uint32_t *outFirstSetIndex) { int i = __builtin_ffsll(v); - *out_first_set_index = i - 1; + *outFirstSetIndex = i - 1; return i != 0; } #endif