primitive vector types
Jason House
jason.james.house at gmail.com
Thu Feb 19 13:53:20 PST 2009
Andrei Alexandrescu Wrote:
> Denis Koroskin wrote:
> > I don't see any reason why float4 can't be made a library type.
>
> Yah, I was thinking the same:
>
> struct float4
> {
> __align(16) float[4] data; // right syntax and value?
> alias data this;
> }
>
> This looks like something that should go into std.matrix pronto. It even
> has value semantics even though fixed arrays don't :o/.
I've looked for this functionality in std.bitmanip before. I never thought to look in std.matrix. Fixed size bit arrays seems like an obvious choice for SIMD optimization.
More information about the Digitalmars-d
mailing list