Browse Source

Val128 + operator

Brian Fiete 3 years ago
parent
commit
e6a9e03b62
1 changed files with 8 additions and 0 deletions
  1. 8 0
      BeefySysLib/util/Hash.h

+ 8 - 0
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)