Thread overview
[Issue 18559] std.math.* should stop using `real` overloads by default
Mar 05, 2018
kinke@gmx.net
Mar 11, 2018
Nicholas Wilson
March 05, 2018
https://issues.dlang.org/show_bug.cgi?id=18559

kinke@gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke@gmx.net

--- Comment #1 from kinke@gmx.net ---
(In reply to hsteoh from comment #0)
> Let 80-bit be an option if the user
> wants to, sure.  But can we please, pretty please, change the default type
> in std.math.* to double instead of real.

Performing the operation in the precision of the operands is what I'd expect. So having to cast explicitly to real if my data is stored as float/double and max precision is needed.

Some math functions are still only implemented for `real`, but they support
reals in double/x87/quadruple precision for the different architectures, i.e.,
support for 64-bit doubles (proper constants, limits etc.) is already there.
E.g., std.math.atan(real) could be generalized to a template
(float/double/real) after adding single-precision support (from Cephes
probably).

--
March 11, 2018
https://issues.dlang.org/show_bug.cgi?id=18559

Nicholas Wilson <iamthewilsonator@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iamthewilsonator@hotmail.co
                   |                            |m

--- Comment #2 from Nicholas Wilson <iamthewilsonator@hotmail.com> ---
Please review:

    https://github.com/dlang/phobos/pull/6257
    https://github.com/dlang/dmd/pull/7995
    https://github.com/dlang/druntime/pull/2135

--
January 09
https://issues.dlang.org/show_bug.cgi?id=18559

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alex@sunopti.com

--- Comment #3 from Mathias LANG <pro.mathias.lang@gmail.com> ---
*** Issue 19712 has been marked as a duplicate of this issue. ***

--