The vector extensions are only accepted when all of the following conditions are met:
Language feature | Discussed in: |
---|---|
Vector programming language extensions | Vector types (IBM extension), Vector literals (IBM extension) |
The following features are IBM extensions to the AltiVec Application Programming Interface specification:
Language extension | Discussed in: |
---|---|
Initializer lists for vectors | Initialization of vectors (IBM extension) |
typedef definitions for vector types | typedef definitions |
compound literals as initializers for static vector variables | Compound literal expressions (C only) |
vector types as arguments to the __alignof__ and typeof operators | The __alignof__ operator (IBM extension), The typeof operator (IBM extension) |