mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
[CPP-418] Some more complex numbers, vectors.
This commit is contained in:
committed by
Geoffrey White
parent
89655612b0
commit
f255977027
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
* ```
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user