代码搜索:complex
找到约 10,000 项符合「complex」的源代码
代码结果 10,000
www.eeworm.com/read/366702/2882161
c complex-5.c
/* PR middle-end/33088 */
/* Origin: Joseph S. Myers */
/* { dg-do run { target i?86-*-linux* x86_64-*-linux* } } */
/* { dg-options "-std=c99 -O -ffloat-store -lm" } */
#include
www.eeworm.com/read/366702/2882315
c convert-complex.c
/* { dg-options "-O3" } */
/* N1150 5.3 Conversions between decimal floating and complex.
C99 6.3.1.7 Conversions, arithmetic operands, real and complex. */
extern void abort(void);
static int f
www.eeworm.com/read/366702/2882359
c complex-4.c
/* PR c/22393 */
/* { dg-options "-O -std=gnu99" } */
__complex__ double foo (__complex__ double x)
{
return 1.0 / x * -1.0i;
}
www.eeworm.com/read/366702/2882372
h complex-2.h
/* Allow complex types in system headers even with -std=iso9899:1990
-pedantic-errors. Header file. */
#pragma GCC system_header
_Complex double x;
www.eeworm.com/read/366702/2883154
c complex-5.c
/* { dg-do compile } */
/* { dg-options "-O1 -fno-tree-dce -fdump-tree-optimized" } */
_Complex int t = 0;
int f(void)
{
t = 0;
__real__ t = 2;
__imag__ t = 2;
}
/* { dg-final { scan-tree-dump-ti
www.eeworm.com/read/366702/2883191
c complex-4.c
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
int g(_Complex int*);
int f(void)
{
_Complex int t = 0;
int i, j;
__real__ t += 2;
__imag__ t += 2;
return g(&t);
}
/*
www.eeworm.com/read/366702/2883264
c complex-3.c
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */
typedef _Complex float COMPLEX_FLOAT;
float real_part(COMPLEX_FLOAT a)
{
return *(float*)(&a);
}
float real_part_2(COMPLEX_F
www.eeworm.com/read/366702/2883534
c complex-1.c
/* { dg-do compile } */
/* { dg-options "-fopenmp -O1" } */
/* PR middle-end/30143 */
int f (int n)
{
int i;
_Complex float t;
#pragma omp parallel
for (i = 1; i < n - 1; ++i)
t+=1;
}
www.eeworm.com/read/366702/2883612
c complex-3.c
/* Verify that rtl expansion cleanup doesn't get too aggressive about
code dealing with complex CONCATs. */
/* { dg-do run } */
/* { dg-options "-O -fno-tree-sra" } */
extern void abort (void);
e
www.eeworm.com/read/360971/2954972
h complex1.h
// Fig. 18.5: complex1.h
// Definition of class Complex
#ifndef COMPLEX1_H
#define COMPLEX1_H
class Complex {
public:
Complex( double = 0.0, double = 0.0 ); // constructor
Complex