From 946b43eb13442627b7d736758362bc3807b3e8f6 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Wed, 7 Mar 2018 15:27:00 -0800 Subject: Add back method needed by CoreRT --- src/System.Private.CoreLib/shared/System/Number.Parsing.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/System.Private.CoreLib/shared/System/Number.Parsing.cs b/src/System.Private.CoreLib/shared/System/Number.Parsing.cs index 70fc9aea8..c6ae34d05 100644 --- a/src/System.Private.CoreLib/shared/System/Number.Parsing.cs +++ b/src/System.Private.CoreLib/shared/System/Number.Parsing.cs @@ -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; } } } -- cgit v1.2.3