Open dneto0 opened 3 years ago
The SPIR-V opcodes OpIAddCarry
and OpISubBorrow
both interpret the inputs as unsigned integers only. So support is only partially available. For example, 2 + (-1)
would yield a carry.
This was in post-MVP, should it be post-V1 or V1?
This was in post-MVP, should it be post-V1 or V1?
I think there's a typo in the OP:
madhi(x,y,c) return madhi(x,y)+c.
should be
madhi(x,y,c) return mulhi(x, y) + c.
SPIR-V has:
MSL has
I haven't looked at HLSL yet.
update: Fixed typo in expansion of madhi.