powExpressions work at ctfe

Manu via Digitalmars-d digitalmars-d at puremagic.com
Wed May 11 05:40:00 PDT 2016


On 9 May 2016 at 23:02, Stefan Koch via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On Monday, 9 May 2016 at 12:49:16 UTC, Stefan Koch wrote:
>>
>> On Monday, 9 May 2016 at 12:33:33 UTC, Stefan Koch wrote:
>>>
>>> On Monday, 9 May 2016 at 12:24:18 UTC, Timon Gehr wrote:
>>>>
>>>> [...]
>>>
>>>
>>> I see.
>>> I did not test a floating point value at the left-hand site.
>>> working on a fix.
>>
>>
>> okay the workaround would be just to avoid pointer casts.
>> And use bitwise operations to convert the values.
>> Another option is not to jit std.math routines at ctfe.
>>
>> I would prefer the second option, any opinions ?
>
>
> Yet another option is using soft-float for ctfe, that would also prevent
> issues with cross-compiled binarys that have ctfe in them.

This is almost certainly the correct solution... at least a soft-float
implementation of pow, since it's an operator ;)


More information about the Digitalmars-d mailing list