[llvm-commits] [PATCH, test-suite, AltiVec] Remove use of GNU extension __complex__
Ulrich Weigand
Ulrich.Weigand at de.ibm.com
Mon Oct 15 06:35:51 PDT 2012
Stephen Canon <scanon at apple.com> wrote on 12.10.2012 19:50:41:
> On Oct 12, 2012, at 1:30 PM, Ulrich Weigand <Ulrich.Weigand at de.ibm.com>
wrote:
> > - the callers of this routine use arrays of two floats instead
> > of complex numbers, and just assume those have the same
> > representation as a __complex__ (or _Complex) -- this is
> > non-portable anyway
>
> That's explicitly defined to work by C99 and C++11.
>
> C99: "Each complex type has the same representation and alignment
> requirements as an array type containing exactly two elements of the
> corresponding real type."
>
> C++: various requirements in 26.4.
Ah, I didn't see that. Thanks for the heads-up!
Bye,
Ulrich
More information about the llvm-commits
mailing list