diff options
Diffstat (limited to 'science/cdo/files/patch-libcdi_src_cgribexlib.c')
-rw-r--r-- | science/cdo/files/patch-libcdi_src_cgribexlib.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/science/cdo/files/patch-libcdi_src_cgribexlib.c b/science/cdo/files/patch-libcdi_src_cgribexlib.c index 904c7971669d..f7bc6e9ecbab 100644 --- a/science/cdo/files/patch-libcdi_src_cgribexlib.c +++ b/science/cdo/files/patch-libcdi_src_cgribexlib.c @@ -1,4 +1,4 @@ ---- libcdi/src/cgribexlib.c.orig 2022-01-28 10:46:29 UTC +--- libcdi/src/cgribexlib.c.orig 2022-05-25 13:46:13 UTC +++ libcdi/src/cgribexlib.c @@ -12,7 +12,7 @@ #pragma GCC diagnostic warning "-Wstrict-overflow" @@ -9,8 +9,8 @@ #pragma options nostrict #include <ppu_intrinsics.h> #endif -@@ -745,8 +745,8 @@ void pwr6_minmax_val_double_unrolled6(const double *re - size_t i, j; +@@ -737,8 +737,8 @@ void pwr6_minmax_val_double_unrolled6(const double *re + { size_t residual = datasize % __UNROLL_DEPTH_1; size_t ofs = datasize - residual; - double register dmin[__UNROLL_DEPTH_1]; @@ -18,11 +18,11 @@ + double dmin[__UNROLL_DEPTH_1]; + double dmax[__UNROLL_DEPTH_1]; - for ( j = 0; j < __UNROLL_DEPTH_1; j++) + for (size_t j = 0; j < __UNROLL_DEPTH_1; ++j) { -@@ -758,21 +758,21 @@ void pwr6_minmax_val_double_unrolled6(const double *re +@@ -750,21 +750,21 @@ void pwr6_minmax_val_double_unrolled6(const double *re { - for (j = 0; j < __UNROLL_DEPTH_1; j++) + for (size_t j = 0; j < __UNROLL_DEPTH_1; ++j) { - dmin[j] = __fsel(dmin[j] - data[i+j], data[i+j], dmin[j]); - dmax[j] = __fsel(data[i+j] - dmax[j], data[i+j], dmax[j]); @@ -31,7 +31,7 @@ } } - for (j = 0; j < residual; j++) + for (size_t j = 0; j < residual; ++j) { - dmin[j] = __fsel(dmin[j] - data[ofs+j], data[ofs+j], dmin[j]); - dmax[j] = __fsel(data[ofs+j] - dmax[j], data[ofs+j], dmax[j]); @@ -39,7 +39,7 @@ + dmax[j] = __builtin_ppc_fsel(data[ofs+j] - dmax[j], data[ofs+j], dmax[j]); } - for ( j = 0; j < __UNROLL_DEPTH_1; j++) + for (size_t j = 0; j < __UNROLL_DEPTH_1; ++j) { - *fmin = __fsel(*fmin - dmin[j], dmin[j], *fmin); - *fmax = __fsel(dmax[j] - *fmax, dmax[j], *fmax); |