We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ea0de1 commit c509adeCopy full SHA for c509ade
base/float.jl
@@ -503,7 +503,7 @@ isfinite(x::Float16) = reinterpret(UInt16,x)&0x7c00 != 0x7c00
503
isfinite(x::Real) = decompose(x)[3] != 0
504
isfinite(x::Integer) = true
505
506
-isinf(x::Real) = !isnan(x) & !isfinite(x)
+isinf(x::Real) = (reinterpret(Unsigned, x) & ~sign_mask(T)) == exponent_mask(T)
507
508
## hashing small, built-in numeric types ##
509
0 commit comments