How to use math functions in dcompute?

Sobaya sobaya007 at gmail.com
Tue Sep 25 05:18:55 UTC 2018


On Thursday, 20 September 2018 at 12:48:14 UTC, Nicholas Wilson 
wrote:
> On Thursday, 20 September 2018 at 12:43:02 UTC, Nicholas Wilson 
> wrote:
>> Hmm, I can reproduce. Will look into it.
>
> pragma(LDC_intrinsic, "llvm.nvvm.cos.approx.f")
> float cos(float val);
>
> does work but is an approximation.

It works for me.

I'll use it currently.

Thanks!


More information about the Digitalmars-d-learn mailing list