This is the mail archive of the gcc-patches@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: [C++] Handle ?: for vectors


My guess for the reason why OpenCL has the semantics it does is that if you stored a boolean result in a variable earlier and then use it as the ? condition, that would require an extra comparison whereas if it's already a vector of 0 and -1 as expected it can be used directly.

Jason


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