Added
Link Here
|
1 |
--- stress-cpu.c.orig 2015-09-18 14:50:12 UTC |
2 |
+++ stress-cpu.c |
3 |
@@ -57,7 +58,6 @@ |
4 |
#define ccosl ccos |
5 |
#define csinl csin |
6 |
#define cpow pow |
7 |
-#define powl pow |
8 |
#endif |
9 |
|
10 |
/* |
11 |
@@ -866,6 +866,7 @@ stress_cpu_fp(_Decimal128, decimal128, s |
12 |
/* Append floating point literal specifier to literal value */ |
13 |
#define FP(val, ltype) val ## ltype |
14 |
|
15 |
+#if defined(__STDC_IEC_559_COMPLEX__) |
16 |
/* |
17 |
* Generic complex stressor macro |
18 |
*/ |
19 |
@@ -891,6 +892,7 @@ static void HOT OPTIMIZE3 stress_cpu_ ## |
20 |
stress_cpu_complex(complex float, f, complex_float, csinf, ccosf) |
21 |
stress_cpu_complex(complex double, , complex_double, csin, ccos) |
22 |
stress_cpu_complex(complex long double, l, complex_long_double, csinl, ccosl) |
23 |
+#endif /* __STDC_IEC_559_COMPLEX__ */ |
24 |
|
25 |
#define int_float_ops(_ftype, flt_a, flt_b, flt_c, flt_d, \ |
26 |
_sin, _cos, int_a, int_b, _c1, _c2, _c3) \ |
27 |
@@ -2058,9 +2060,11 @@ static stress_cpu_stressor_info_t cpu_me |
28 |
{ "ackermann", stress_cpu_ackermann }, |
29 |
{ "bitops", stress_cpu_bitops }, |
30 |
{ "callfunc", stress_cpu_callfunc }, |
31 |
+#if defined(__STDC_IEC_559_COMPLEX__) |
32 |
{ "cdouble", stress_cpu_complex_double }, |
33 |
{ "cfloat", stress_cpu_complex_float }, |
34 |
{ "clongdouble", stress_cpu_complex_long_double }, |
35 |
+#endif /* __STDC_IEC_559_COMPLEX__ */ |
36 |
{ "correlate", stress_cpu_correlate }, |
37 |
{ "crc16", stress_cpu_crc16 }, |
38 |
#if defined(STRESS_FLOAT_DECIMAL) |