30#if __STDC_VERSION__ >= 199901L
36 inline float_complex cmplxf(
float re,
float im) {
return re + im * I; }
37 inline float_complex ccaddf(float_complex x, float_complex y) {
return x + y; }
38 inline float_complex craddf(float_complex x,
float y) {
return x + y; }
39 inline float_complex ccsubf(float_complex x, float_complex y) {
return x - y; }
40 inline float_complex crsubf(float_complex x,
float y) {
return x - y; }
41 inline float_complex ccmulf(float_complex x, float_complex y) {
return x * y; }
42 inline float_complex cccmulf(float_complex x, float_complex y, float_complex z) {
return x * y * z; }
43 inline float_complex crmulf(float_complex x,
float y) {
return x * y; }
44 inline float_complex ccdivf(float_complex x, float_complex y) {
return x / y; }
45 inline float_complex crdivf(float_complex x,
float y) {
return x / y; }
50 inline double_complex cmplx(
double re,
double im) {
return re + im * I; }
51 inline double_complex ccadd(double_complex x, double_complex y) {
return x + y; }
52 inline double_complex cradd(double_complex x,
double y) {
return x + y; }
53 inline double_complex ccsub(double_complex x, double_complex y) {
return x - y; }
54 inline double_complex crsub(double_complex x,
double y) {
return x - y; }
55 inline double_complex ccmul(double_complex x, double_complex y) {
return x * y; }
56 inline double_complex cccmul(double_complex x, double_complex y, double_complex z) {
return x * y * z; }
57 inline double_complex crmul(double_complex x,
double y) {
return x * y; }
58 inline double_complex ccdiv(double_complex x, double_complex y) {
return x / y; }
59 inline double_complex crdiv(double_complex x,
double y) {
return x / y; }
Contains wrappers for handling complex numbers across both C99-compliant compilers and Microsoft Visu...