diff options
author | Stephen Toub <stoub@microsoft.com> | 2019-07-10 19:12:38 -0400 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-07-10 16:12:38 -0700 |
commit | ef2f9f41555c453451a5003f1be4bb9888ab078d (patch) | |
tree | 88bef48b0eb6e65d701fefba052c35c3956ca958 /src/System.Private.CoreLib | |
parent | d61a380bbfde580986f416d8bf3e687104cd5701 (diff) | |
download | coreclr-ef2f9f41555c453451a5003f1be4bb9888ab078d.tar.gz coreclr-ef2f9f41555c453451a5003f1be4bb9888ab078d.tar.bz2 coreclr-ef2f9f41555c453451a5003f1be4bb9888ab078d.zip |
Add AggressiveInlining to Single.GetHashCode (#25633)
Diffstat (limited to 'src/System.Private.CoreLib')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Single.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Single.cs b/src/System.Private.CoreLib/shared/System/Single.cs index fe8e804e55..590091b68b 100644 --- a/src/System.Private.CoreLib/shared/System/Single.cs +++ b/src/System.Private.CoreLib/shared/System/Single.cs @@ -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)); |