Add back method needed by CoreRT
authorJan Kotas <jkotas@microsoft.com>
Wed, 7 Mar 2018 23:27:00 +0000 (15:27 -0800)
committerJan Kotas <jkotas@microsoft.com>
Thu, 8 Mar 2018 07:17:51 +0000 (23:17 -0800)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/mscorlib/shared/System/Number.Parsing.cs

index 70fc9ae..c6ae34d 100644 (file)
@@ -956,6 +956,9 @@ namespace System
 
             public static unsafe ulong Mantissa(double d) =>
                 *((ulong*)&d) & 0x000fffffffffffff;
+
+            public static unsafe bool Sign(double d) =>
+                (*((uint*)&d + 1) >> 31) != 0;
         }
     }
 }