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
diff options
context:
space:
mode:
-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;
}
}
}