From e6a9e03b62967934b8fedb75bf582660219be466 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 29 Nov 2021 08:39:06 -0800 Subject: [PATCH] Val128 + operator --- BeefySysLib/util/Hash.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BeefySysLib/util/Hash.h b/BeefySysLib/util/Hash.h index 46eb44cb..7353689a 100644 --- a/BeefySysLib/util/Hash.h +++ b/BeefySysLib/util/Hash.h @@ -62,6 +62,14 @@ public: { return StrFormat("%lX%lX", mHigh, mLow); } + + Val128 operator+(int rLow) + { + Val128 result; + result.mLow += mLow + rLow; + result.mHigh = mHigh; + return result; + } }; static bool operator!=(const Val128& l, int rLow)