Closed GregPlowman closed 4 years ago
Hi @GregPlowman, thanks for your continued interest in my project! Yes, those conversion functions look totally fine. In fact, my Float64x2
representation should be just about bit-for-bit identical to DoubleFloats.Double64
(modulo some minor rounding/normalization differences), so you should be able to write
@inline MultiFloat{Float64,2}(x::DoubleFloats.Double64) = Float64x2((x.hi, x.lo))
to avoid the minor overhead of performing an addition.
Are you perhaps interested in performing some benchmarks between MultiFloats.jl and other extended-precision Julia packages? If so, I would be happy to see the results and learn how MultiFloats.jl could be further improved.
Thanks David.
This is really a question rather than an issue. I hope that's OK.
I would like to convert between various extended-precision types. Are these conversions for
MultiFloats
correct and idiomatic?