projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d545fea
)
Add back method needed by CoreRT
author
Jan Kotas
<jkotas@microsoft.com>
Wed, 7 Mar 2018 23:27:00 +0000
(15:27 -0800)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/src/mscorlib/shared/System/Number.Parsing.cs
b/src/mscorlib/shared/System/Number.Parsing.cs
index
70fc9ae
..
c6ae34d
100644
(file)
--- 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;
}
}
}