This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: generic simd and c++


Daniel Egger <degger@fhm.edu> writes:

| [1  <text/plain>]
| Am Mit, 2002-07-31 um 21.59 schrieb Benjamin Kosnik:
| 
| > Somebody should just make a template specialization of std::vector that
| > uses the simd extensions. See <vector> and perhaps the vector<bool>
| > specialization already in place if you're curious.
| 
| I'm curious how you think this might work. What should the template
| parameter be? SIMD instructions are somewhat different from typical
| containter operations and would require special methods while some 
| operations a vector specialisation needs would be hardly implementable
| and probably not make much sense.
| 
| Maybe I'm just thinking in the wrong direction so please show me the
| way.... :)

Actually, I thought the Altivec vector workd Aldy did may be extended
to support valarray<>.  I didn't reallywork hard; but I think it is
doable.  For fixed sized valarray<>.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]