[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rep:[f-cpu] A simple SIMD extension for C(++)



On Fri, May 17, 2002 at 07:31:45AM +0000, Nicolas Boulay wrote:
> In the STL C++ library there is a type called valarray it's vector of
> "something" if you apply an operator with it it will be done value by
> value as SIMD does !
> 
> So such thing could be done for valarray<int>, valarray<short>,...

The purpose of the `valarray' template is to make programming easier,
while __map__ shall enable the compiler to optimize for SIMD processors,
by explicitly marking SIMD-style parallelism. But of course you can use
the latter to implement the former :)

-- 
 Michael "Tired" Riepe <Michael.Riepe@stud.uni-hannover.de>
 "All I wanna do is have a little fun before I die"
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/