Thread overview
[Issue 18089] AArch64: Need Quadruple float support in CTFE hashOf / core.internal.convert.parse
Dec 16, 2017
Johannes Pfau
Dec 16, 2017
Johannes Pfau
Dec 17, 2017
Johannes Pfau
Dec 17, 2017
Iain Buclaw
Oct 10, 2018
Nathan S.
Oct 10, 2018
Nathan S.
December 16, 2017
https://issues.dlang.org/show_bug.cgi?id=18089

Johannes Pfau <johannespfau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu,
                   |                            |johannespfau@gmail.com

--
December 16, 2017
https://issues.dlang.org/show_bug.cgi?id=18089

Johannes Pfau <johannespfau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org,
                   |                            |schveiguy@yahoo.com

--
December 16, 2017
https://issues.dlang.org/show_bug.cgi?id=18089

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|schveiguy@yahoo.com         |

--- Comment #1 from Steven Schveighoffer <schveiguy@yahoo.com> ---
This is out of my league, sorry!

--
December 17, 2017
https://issues.dlang.org/show_bug.cgi?id=18089

--- Comment #2 from Johannes Pfau <johannespfau@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....

--
December 17, 2017
https://issues.dlang.org/show_bug.cgi?id=18089

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
So from a CTFE standpoint, its support cent/ucent, or support unions.

--
October 10, 2018
https://issues.dlang.org/show_bug.cgi?id=18089

Nathan S. <n8sh.secondary@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |n8sh.secondary@hotmail.com

--- Comment #4 from Nathan S. <n8sh.secondary@hotmail.com> ---
Fixed by https://github.com/dlang/druntime/pull/2257

--
October 10, 2018
https://issues.dlang.org/show_bug.cgi?id=18089

Nathan S. <n8sh.secondary@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--