public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* -flax-vector-conversions option
@ 2011-02-20  8:57 ali hagigat
  2011-02-20 13:42 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: ali hagigat @ 2011-02-20  8:57 UTC (permalink / raw)
  To: gcc-help

"-flax-vector-conversions
Allow implicit conversions between vectors with differing numbers of elements
and/or incompatible element types. "
Please mention an example. What is the story of vectors? and
incompatible element types?

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

* Re: -flax-vector-conversions option
  2011-02-20  8:57 -flax-vector-conversions option ali hagigat
@ 2011-02-20 13:42 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2011-02-20 13:42 UTC (permalink / raw)
  To: ali hagigat; +Cc: gcc-help

ali hagigat <hagigatali@gmail.com> writes:

> "-flax-vector-conversions
> Allow implicit conversions between vectors with differing numbers of elements
> and/or incompatible element types. "
> Please mention an example. What is the story of vectors? and
> incompatible element types?

Vectors are described at
http://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html .  As that
says, "it is possible to cast from one vector type to another, provided
they are of the same size."  If you use -flax-vector-conversions, then
these conversions are permitted without an explicit cast.

Ian

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

end of thread, other threads:[~2011-02-20 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-20  8:57 -flax-vector-conversions option ali hagigat
2011-02-20 13:42 ` Ian Lance Taylor

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).