projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #5327 from marek-safar/corefx-bump
[mono.git]
/
mcs
/
class
/
referencesource
/
mscorlib
/
system
/
single.cs
diff --git
a/mcs/class/referencesource/mscorlib/system/single.cs
b/mcs/class/referencesource/mscorlib/system/single.cs
index 5e2cf73befd5bb2729743ab88567dab9722c58d7..3338e560db9ac10e2081943aff9e252f4968c078 100644
(file)
--- a/
mcs/class/referencesource/mscorlib/system/single.cs
+++ b/
mcs/class/referencesource/mscorlib/system/single.cs
@@
-76,6
+76,15
@@
namespace System {
return (*(int*)(&f) & 0x7FFFFFFF) > 0x7F800000;
}
return (*(int*)(&f) & 0x7FFFFFFF) > 0x7F800000;
}
+#if MONO
+ [Pure]
+ [System.Runtime.Versioning.NonVersionable]
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
+ public unsafe static bool IsFinite(float f) {
+ return (*(int*)(&f) & 0x7FFFFFFF) < 0x7F800000;
+ }
+#endif
+
// Compares this object to another object, returning an integer that
// indicates the relationship.
// Returns a value less than zero if this object
// Compares this object to another object, returning an integer that
// indicates the relationship.
// Returns a value less than zero if this object