Array operations -- not actually so difficult
Charlie
charlies at nowhere.com
Fri Dec 15 07:00:37 PST 2006
Nox / Lux wrote:
> Don Clugston wrote:
>> Consider something like a dot product,
>>
>> real a[], b[], c[];
>> real d = dot(a+b, c);
>
> Hmm, speaking of array operations and dot product ... Seeing as this (dot product)
> is one of the added instructions of the upcoming SSE4, would it be possible to
> automatically make use of this instruction behind the scenes, compiling a normal
> version only if SSE4 is not supported?
I think this is the main reason why it hasn't been implemented yet ?
The backend can pull some tricks to optimize certain operations.
I would certainly like to see array ops implemented though, maybe this
can be a 1.0 solution, and re-written for 2.0 ?
Charlie
More information about the Digitalmars-d
mailing list