Skip to content

Commit

Permalink
Added aggressive inlining on PositiveModulo
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyyrylainen committed Mar 7, 2025
1 parent 073b6bc commit 125b0f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/general/utils/MathUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public static bool IsEqualApproximately(float a, float b, float tolerance)
/// This function returns modulo values between 0 and mod-1.
/// </summary>
/// <returns>The positive modulo</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int PositiveModulo(this int val, int mod)
{
int result = val % mod;
Expand Down

0 comments on commit 125b0f7

Please sign in to comment.