Adding a float with all four elements of a float4

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 20 18:49:19 PDT 2016


On Thursday, 21 April 2016 at 01:48:15 UTC, Nicholas Wilson wrote:
> On Thursday, 21 April 2016 at 00:14:53 UTC, Straivers wrote:
>> Hi,
>>
>> I want to make a utility wrapper around a core.simd.float4, 
>> and have been trying to make the following code work, but have 
>> been met with no success.
>>
>> [...]
>
> you want to broadcast the rhs to a float4 and then adds them. 
> Can you post the errors (if any) you get during compilation.

Urgh, autocorrect. That should be addps them.


More information about the Digitalmars-d-learn mailing list