File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -199,10 +199,10 @@ Double64(x::Double16) = isfinite(x) ? Double64(two_sum(Float64(HI(x)), Float64(L
199199Promote a `Double16` to a `Double32` by converting the `hi` and `lo` attributes
200200of `x` to `Double32`s and adding in extended precision.
201201"""
202- Double32 (x:: Double16 ) = isfinite (x) ? Double32 (BigFloat (x )) : Double32 (Float32 (x))
203- Double32 (x:: Double64 ) = isfinite (x) ? Double32 (BigFloat (x)) : Double32 ( Float32 (x))
204- Double16 (x:: Double64 ) = isfinite (x) ? Double16 (BigFloat (x)) : Double16 ( Float16 (x))
205- Double16 (x:: Double32 ) = isfinite (x) ? Double16 (BigFloat (x)) : Double16 ( Float16 (x))
202+ Double32 (x:: Double16 ) = isfinite (x) ? Double32 (two_sum ( Float32 ( HI (x)), Float32 ( LO (x)) )) : Double32 (Float32 (x))
203+ Double32 (x:: Double64 ) = Double32 (HI (x))
204+ Double16 (x:: Double64 ) = Double16 (HI (x))
205+ Double16 (x:: Double32 ) = Double16 (HI (x))
206206
207207# cleanup to support other pkgs
208208DoubleFloat (x:: Float64 ) = Double64 (x, 0.0 )
@@ -245,5 +245,5 @@ function Base.decompose(x::Double64)
245245 return decompose (BigFloat (x))
246246end
247247function Base. decompose (x:: D ) where {D<: Union{Double32,Double16} }
248- return decompose (Double64 (x))
248+ return decompose (Float64 (x))
249249end
You can’t perform that action at this time.
0 commit comments