Adding a float with all four elements of a float4

Marco Leise via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Apr 21 12:04:53 PDT 2016


Am Thu, 21 Apr 2016 00:14:53 +0000
schrieb Straivers <straivers98 at gmail.com>:

> 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.
> 
> auto add(float rhs)
> {
>      return __simd(XMM.ADDPS, lhs, rhs);
> }

It seems like your are duplicating std.simd:
https://github.com/TurkeyMan/simd

-- 
Marco



More information about the Digitalmars-d-learn mailing list