Skip to content

Commit 5359d37

Browse files
authored
Added AggressiveInlining attribute to hashing and updating the sdk version for netcorapp 3.0 (dotnet#2073)
* added AggressiveInlining attribute to hashing and updating the dotnetcli version * removed aggressive inlining from murmur hash * changing dotnetCLiversion * Reverting sdk version
1 parent 8cf2596 commit 5359d37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Microsoft.ML.Core/Utilities/Hashing.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public static uint HashSequence(uint[] sequence, int min, int lim)
8989
/// Make certain to also use <see cref="MixHash"/> on the final hashed value, if you
9090
/// depend upon having distinct bits.
9191
/// </summary>
92+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
9293
public static uint MurmurRound(uint hash, uint chunk)
9394
{
9495
chunk *= 0xCC9E2D51;
@@ -282,6 +283,7 @@ public static uint MixHash(uint hash)
282283
return hash;
283284
}
284285

286+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
285287
private static uint Rotate(uint x, int r)
286288
{
287289
return (x << r) | (x >> (32 - r));

0 commit comments

Comments
 (0)