Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Commit 0e7dbbe

Browse files
stephentoubjkotas
authored andcommitted
Add AggressiveInlining to Single.GetHashCode (dotnet/coreclr#25633)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
1 parent a1af13e commit 0e7dbbe

File tree

1 file changed

+1
-0
lines changed
  • src/System.Private.CoreLib/shared/System

1 file changed

+1
-0
lines changed

src/System.Private.CoreLib/shared/System/Single.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ public bool Equals(float obj)
214214
return IsNaN(obj) && IsNaN(m_value);
215215
}
216216

217+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
217218
public override int GetHashCode()
218219
{
219220
var bits = Unsafe.As<float, int>(ref Unsafe.AsRef(in m_value));

0 commit comments

Comments
 (0)