[Dlang-internal] Complex numbers

Walter Bright via Dlang-internal dlang-internal at puremagic.com
Mon Oct 17 18:05:45 PDT 2016


On 10/17/2016 1:11 PM, Ilya Yaroshenko wrote:
> On Monday, 17 October 2016 at 18:48:17 UTC, Walter Bright wrote:
>> On 10/17/2016 3:48 AM, Ilya Yaroshenko wrote:
>> > [...]
>>
>> This is worthy of another bugzilla issue.
>>
>> One thing you can try is to reimplement std.complex using native complex
>> numbers instead of the fields .re and .im, and see if that produces better code.
>
> Does not help

Seems strange to me.

   cdouble

and:

   struct Complex { cdouble x; alias this x; }

should generate the same code.


More information about the Dlang-internal mailing list