[CPP-418] Some more complex numbers, vectors.

This commit is contained in:
Ziemowit Laski
2019-09-09 16:51:37 -07:00
committed by Geoffrey White
parent 89655612b0
commit f255977027
2 changed files with 2 additions and 6 deletions

View File

@@ -1171,8 +1171,6 @@ class ArrayType extends DerivedType {
* ```
* typedef int v4si __attribute__ (( vector_size(4*sizeof(int)) ));
* v4si v = { 1, 2, 3, 4 };
* typedef float float4 __attribute__((ext_vector_type(4)));
* float4 vf = (float4){1.0f, 2.0f, 3.0f, 4.0f};
* ```
*/
class GNUVectorType extends DerivedType {

View File

@@ -171,8 +171,7 @@ class PostfixDecrExpr extends DecrementOperation, PostfixCrementOperation, @post
* A C/C++ GNU real part expression. It operates on `_Complex` or
* `__complex__` numbers.
* ```
* #include <complex.h>
* _Complex double f = CMPLX( 2.0, 3.0 );
* _Complex double f = { 2.0, 3.0 };
* double d = __real(f); // 2.0
* ```
*/
@@ -186,8 +185,7 @@ class RealPartExpr extends UnaryArithmeticOperation, @realpartexpr {
* A C/C++ GNU imaginary part expression. It operates on `_Complex` or
* `__complex__` numbers.
* ```
* #include <complex.h>
* _Complex double f = CMPLX( 2.0, 3.0 );
* _Complex double f = { 2.0, 3.0 };
* double d = __imag(f); // 3.0
* ```
*/