How to use math functions in dcompute?

Sobaya sobaya007 at gmail.com
Tue Sep 18 06:25:33 UTC 2018


On Tuesday, 18 September 2018 at 01:39:51 UTC, Nicholas Wilson 
wrote:
> On Tuesday, 18 September 2018 at 00:25:33 UTC, Sobaya wrote:
>> I'm waiting for the update. How's your progress?
>
> I t appears I have broke SPIR-V completely somewhere along the 
> line, I may release a v0.2 with out it, hopefully within the 
> week.

I declared like:

pragma(LDC_intrinsic, "llvm.nvvm.cos.f32")
T cos(T)(T val)
     if (__traits(isFloating, T));

It also doesn't work.


More information about the Digitalmars-d-learn mailing list