[Issue 18089] AArch64: Need Quadruple float support in CTFE hashOf / core.internal.convert.parse

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 17 08:37:59 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=18089

--- Comment #2 from Johannes Pfau <johannespfau at gmail.com> ---
Yes, it's a more advanced issue. From a cursory look I'd say the algorithm /
approach should work for quadruple floats as well. However, every temporary
variable has to be checked whether the data type is large enough for quadruple
floats. I think this is the case for everything except for the mantissa, which
does not fit into an ulong. Maybe we can simply use a ulong[2] in the Float
struct, then fix shiftrRound.

However, I think there were efforts in phobos to introduce a generic
FloatTraits type which may also be applicable here and avoids some code
duplication? It is also quite sad, that 600 lines in the convert module are
required for CTFE, whereas a few lines of union/cast code suffices for
runtime....

--


More information about the Digitalmars-d-bugs mailing list