public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* generic simd and c++
@ 2002-07-30 17:34 Andrew Pinski
  2002-07-31 15:37 ` Aldy Hernandez
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Pinski @ 2002-07-30 17:34 UTC (permalink / raw)
  To: gcc

Does generic simd works in c++?
When I try it I get the following error:
findPeaks.cc:47: error: invalid operands of types `vector int' 
and `vector int'
    to binary `operator-'

Thanks,
Andrew Pinski

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: generic simd and c++
@ 2002-07-31 18:06 Benjamin Kosnik
  2002-07-31 22:08 ` Daniel Egger
  0 siblings, 1 reply; 6+ messages in thread
From: Benjamin Kosnik @ 2002-07-31 18:06 UTC (permalink / raw)
  To: gcc; +Cc: aldyh, pinskia

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.

That would rule.

Such a specialization could easily be shipped with libstdc++ as a file
in the "include/ext" directory, once copyright assignments were taken
care of.

-benjamin

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-07-31 23:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-30 17:34 generic simd and c++ Andrew Pinski
2002-07-31 15:37 ` Aldy Hernandez
2002-07-31 17:21   ` Andrew Pinski
2002-07-31 18:06 Benjamin Kosnik
2002-07-31 22:08 ` Daniel Egger
2002-07-31 23:14   ` Gabriel Dos Reis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).