Am Thu, 21 Apr 2016 00:14:53 +
schrieb Straivers :
> 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);
> }
On Thursday, 21 April 2016 at 01:49:19 UTC, Nicholas Wilson wrote:
[...]
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.
I get a "Error: floating point constant expressi
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.
[...]
yo
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
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);
}
Then I tried
auto add(float4 lhs, float rhs)
{
float4 tmp = [rhs, rhs,