From: Jan Kotas Date: Wed, 7 Mar 2018 23:27:00 +0000 (-0800) Subject: Add back method needed by CoreRT X-Git-Tag: accepted/tizen/unified/20190422.045933~2723 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9925a52490d161e8eb9201953c68f8d9dd1850ce;p=platform%2Fupstream%2Fcoreclr.git Add back method needed by CoreRT Signed-off-by: dotnet-bot --- diff --git a/src/mscorlib/shared/System/Number.Parsing.cs b/src/mscorlib/shared/System/Number.Parsing.cs index 70fc9ae..c6ae34d 100644 --- a/src/mscorlib/shared/System/Number.Parsing.cs +++ b/src/mscorlib/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; } } }