|
Added
Link Here
|
| 1 |
--- stress-cpu.c.orig 2015-06-02 19:36:12 UTC |
| 2 |
+++ stress-cpu.c |
| 3 |
@@ -54,10 +54,14 @@ |
| 4 |
#endif |
| 5 |
|
| 6 |
#if defined(__FreeBSD__) |
| 7 |
#define ccosl ccos |
| 8 |
#define csinl csin |
| 9 |
#define cpow pow |
| 10 |
#define powl pow |
| 11 |
+#define logl log |
| 12 |
+#define expl exp |
| 13 |
+#define coshl cosh |
| 14 |
+#define sinhl sinh |
| 15 |
#endif |
| 16 |
|
| 17 |
/* |
| 18 |
@@ -846,6 +853,7 @@ stress_cpu_fp(_Decimal64, decimal64, sin |
| 19 |
stress_cpu_fp(_Decimal128, decimal128, sinl, cosl) |
| 20 |
#endif |
| 21 |
|
| 22 |
+#if defined(__STDC_IEC_559_COMPLEX__) |
| 23 |
/* |
| 24 |
* Generic complex stressor macro |
| 25 |
*/ |
| 26 |
@@ -869,6 +877,7 @@ static void HOT OPTIMIZE3 stress_cpu_ ## |
| 27 |
stress_cpu_complex(complex float, complex_float, csinf, ccosf) |
| 28 |
stress_cpu_complex(complex double, complex_double, csin, ccos) |
| 29 |
stress_cpu_complex(complex long double, complex_long_double, csinl, ccosl) |
| 30 |
+#endif /* __STDC_IEC_559_COMPLEX__ */ |
| 31 |
|
| 32 |
#define int_float_ops(_ftype, flt_a, flt_b, flt_c, flt_d, \ |
| 33 |
_sin, _cos, int_a, int_b, _c1, _c2, _c3) \ |
| 34 |
@@ -1921,9 +1930,11 @@ static stress_cpu_stressor_info_t cpu_me |
| 35 |
{ "ackermann", stress_cpu_ackermann }, |
| 36 |
{ "bitops", stress_cpu_bitops }, |
| 37 |
{ "callfunc", stress_cpu_callfunc }, |
| 38 |
+#if defined(__STDC_IEC_559_COMPLEX__) |
| 39 |
{ "cdouble", stress_cpu_complex_double }, |
| 40 |
{ "cfloat", stress_cpu_complex_float }, |
| 41 |
{ "clongdouble", stress_cpu_complex_long_double }, |
| 42 |
+#endif /* __STDC_IEC_559_COMPLEX__ */ |
| 43 |
{ "correlate", stress_cpu_correlate }, |
| 44 |
{ "crc16", stress_cpu_crc16 }, |
| 45 |
#if defined(STRESS_FLOAT_DECIMAL) |