From d53b62053d2abe4e0f82050aabb09328c740e667 Mon Sep 17 00:00:00 2001 From: Kunal Pathak Date: Fri, 24 May 2024 14:34:28 -0700 Subject: [PATCH] Do not use `const regMaskTP&` as parameter --- src/coreclr/jit/target.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/coreclr/jit/target.h b/src/coreclr/jit/target.h index c0d211f7cc1ea..368052ca6342b 100644 --- a/src/coreclr/jit/target.h +++ b/src/coreclr/jit/target.h @@ -310,31 +310,31 @@ struct regMaskTP bool IsRegNumInMask(regNumber reg); }; -static regMaskTP operator^(const regMaskTP& first, const regMaskTP& second) +static regMaskTP operator^(regMaskTP first, regMaskTP second) { regMaskTP result(first.getLow() ^ second.getLow()); return result; } -static regMaskTP operator&(const regMaskTP& first, const regMaskTP& second) +static regMaskTP operator&(regMaskTP first, regMaskTP second) { regMaskTP result(first.getLow() & second.getLow()); return result; } -static regMaskTP operator|(const regMaskTP& first, const regMaskTP& second) +static regMaskTP operator|(regMaskTP first, regMaskTP second) { regMaskTP result(first.getLow() | second.getLow()); return result; } -static regMaskTP& operator|=(regMaskTP& first, const regMaskTP& second) +static regMaskTP& operator|=(regMaskTP& first, regMaskTP second) { first = first | second; return first; } -static regMaskTP& operator^=(regMaskTP& first, const regMaskTP& second) +static regMaskTP& operator^=(regMaskTP& first, regMaskTP second) { first = first ^ second; return first; @@ -346,18 +346,18 @@ static regMaskTP& operator^=(regMaskTP& first, const regNumber reg) return first; } -static regMaskTP& operator&=(regMaskTP& first, const regMaskTP& second) +static regMaskTP& operator&=(regMaskTP& first, regMaskTP second) { first = first & second; return first; } -static bool operator==(const regMaskTP& first, const regMaskTP& second) +static bool operator==(regMaskTP first, regMaskTP second) { return (first.getLow() == second.getLow()); } -static bool operator!=(const regMaskTP& first, const regMaskTP& second) +static bool operator!=(regMaskTP first, regMaskTP second) { return !(first == second); } @@ -393,18 +393,18 @@ static regMaskTP& operator<<=(regMaskTP& first, const int b) } #endif -static regMaskTP operator~(const regMaskTP& first) +static regMaskTP operator~(regMaskTP first) { regMaskTP result(~first.getLow()); return result; } -static uint32_t PopCount(const regMaskTP& value) +static uint32_t PopCount(regMaskTP value) { return BitOperations::PopCount(value.getLow()); } -static uint32_t BitScanForward(const regMaskTP& mask) +static uint32_t BitScanForward(regMaskTP mask) { return BitOperations::BitScanForward(mask.getLow()); }