June 30, 2017 Re: Force usage of double (instead of higher precision) | ||||
---|---|---|---|---|
| ||||
Posted in reply to kinke | 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.
|
June 30, 2017 Re: Force usage of double (instead of higher precision) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stefan Koch | 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.
|
Copyright © 1999-2021 by the D Language Foundation