Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-03-08 02:27:00 +0300
committerJan Kotas <jkotas@microsoft.com>2018-03-08 04:08:33 +0300
commit946b43eb13442627b7d736758362bc3807b3e8f6 (patch)
tree5b890775c7ffd79a466e14a6db71d3135c170258 /src
parent07b9e86eb56cf6c82a6ad5db421db1f9a11bc5e1 (diff)
Add back method needed by CoreRT
Diffstat (limited to 'src')
-rw-r--r--src/System.Private.CoreLib/shared/System/Number.Parsing.cs3
1 files changed, 3 insertions, 0 deletions
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;
}
}
}