mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-04 09:43:16 +00:00
Added const reference params if possible, removed less 16 size
This commit is contained in:
parent
79680c50c0
commit
aed9a737d6
9 changed files with 19 additions and 19 deletions
|
@ -94,7 +94,7 @@ namespace Common {
|
|||
|
||||
// This function divides a u128 by a u32 value and produces two u64 values:
|
||||
// the result of division and the remainder
|
||||
[[nodiscard]] static inline std::pair<u64, u64> Divide128On32(u128 dividend, u32 divisor) {
|
||||
[[nodiscard]] static inline std::pair<u64, u64> Divide128On32(const u128& dividend, u32 divisor) {
|
||||
u64 remainder = dividend[0] % divisor;
|
||||
u64 accum = dividend[0] / divisor;
|
||||
if (dividend[1] == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue