Force usage of double (instead of higher precision)
kinke via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jun 30 10:50:17 PDT 2017
On Friday, 30 June 2017 at 16:39:16 UTC, Stefan Koch wrote:
> On Friday, 30 June 2017 at 16:29:22 UTC, kinke wrote:
>> On Friday, 30 June 2017 at 16:21:18 UTC, kinke wrote:
>>> CTFE only (incl. parsing of literals). Just make sure you
>>> don't happen to call a std.math function only accepting
>>> reals; I don't know how many of those are still around.
>>
>> Oh, apparently most still are. There are even some mean
>> overloads for double/float only casting and forwarding to the
>> `real` implementation.
>
> That is not a problem.
> The only problem is that the excess is not discarded at the
> end. Which is because of the design of the constant-folder.
I was referring to runtime performance, as that was what Luis was
concerned about.
More information about the Digitalmars-d-learn
mailing list