Add AggressiveInlining to Single.GetHashCode (#25633)
authorStephen Toub <stoub@microsoft.com>
Wed, 10 Jul 2019 23:12:38 +0000 (19:12 -0400)
committerJan Kotas <jkotas@microsoft.com>
Wed, 10 Jul 2019 23:12:38 +0000 (16:12 -0700)
src/System.Private.CoreLib/shared/System/Single.cs

index fe8e804..590091b 100644 (file)
@@ -214,6 +214,7 @@ namespace System
             return IsNaN(obj) && IsNaN(m_value);
         }
 
+        [MethodImpl(MethodImplOptions.AggressiveInlining)]
         public override int GetHashCode()
         {
             var bits = Unsafe.As<float, int>(ref Unsafe.AsRef(in m_value));