diff --git a/src/grib_accessor_class_bitmap.cc b/src/grib_accessor_class_bitmap.cc index a25d79a49..25d98b5ea 100644 --- a/src/grib_accessor_class_bitmap.cc +++ b/src/grib_accessor_class_bitmap.cc @@ -213,7 +213,7 @@ static int unpack_long(grib_accessor* a, long* val, size_t* len) } template -static int unpack(grib_accessor* a, T* val, size_t* len) +static int unpack_helper(grib_accessor* a, T* val, size_t* len) { static_assert(std::is_floating_point::value, "Requires floating points numbers"); long pos = a->offset * 8; @@ -241,12 +241,12 @@ static int unpack(grib_accessor* a, T* val, size_t* len) static int unpack_double(grib_accessor* a, double* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_float(grib_accessor* a, float* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_double_element(grib_accessor* a, size_t idx, double* val) diff --git a/src/grib_accessor_class_data_apply_bitmap.cc b/src/grib_accessor_class_data_apply_bitmap.cc index 3f10fa26c..a3f68499b 100644 --- a/src/grib_accessor_class_data_apply_bitmap.cc +++ b/src/grib_accessor_class_data_apply_bitmap.cc @@ -344,7 +344,7 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len) } template -static int unpack(grib_accessor* a, T* val, size_t* len) +static int unpack_helper(grib_accessor* a, T* val, size_t* len) { static_assert(std::is_floating_point::value, "Requires floating point numbers"); grib_accessor_data_apply_bitmap* self = (grib_accessor_data_apply_bitmap*)a; @@ -428,12 +428,12 @@ static int unpack(grib_accessor* a, T* val, size_t* len) static int unpack_double(grib_accessor* a, double* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_float(grib_accessor* a, float* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int get_native_type(grib_accessor* a) diff --git a/src/grib_accessor_class_data_apply_boustrophedonic.cc b/src/grib_accessor_class_data_apply_boustrophedonic.cc index 1f10885e0..a4b8668f4 100644 --- a/src/grib_accessor_class_data_apply_boustrophedonic.cc +++ b/src/grib_accessor_class_data_apply_boustrophedonic.cc @@ -147,7 +147,7 @@ static int value_count(grib_accessor* a, long* numberOfPoints) } template -static int unpack(grib_accessor* a, T* val, size_t* len) +static int unpack_helper(grib_accessor* a, T* val, size_t* len) { grib_accessor_data_apply_boustrophedonic* self = (grib_accessor_data_apply_boustrophedonic*)a; size_t plSize = 0; @@ -243,12 +243,12 @@ static int unpack(grib_accessor* a, T* val, size_t* len) static int unpack_double(grib_accessor* a, double* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_float(grib_accessor* a, float* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_double_element(grib_accessor* a, size_t idx, double* val) diff --git a/src/grib_accessor_class_data_ccsds_packing.cc b/src/grib_accessor_class_data_ccsds_packing.cc index 3b5cee87d..97d630282 100644 --- a/src/grib_accessor_class_data_ccsds_packing.cc +++ b/src/grib_accessor_class_data_ccsds_packing.cc @@ -499,7 +499,7 @@ cleanup: } template -static int unpack(grib_accessor* a, T* val, size_t* len) +static int unpack_helper(grib_accessor* a, T* val, size_t* len) { static_assert(std::is_floating_point::value, "Requires floating point numbers"); grib_accessor_data_ccsds_packing* self = (grib_accessor_data_ccsds_packing*)a; @@ -639,12 +639,12 @@ cleanup: static int unpack_double(grib_accessor* a, double* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_float(grib_accessor* a, float* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_double_element(grib_accessor* a, size_t idx, double* val) diff --git a/src/grib_accessor_class_data_complex_packing.cc b/src/grib_accessor_class_data_complex_packing.cc index 95612de5a..1357ef13d 100644 --- a/src/grib_accessor_class_data_complex_packing.cc +++ b/src/grib_accessor_class_data_complex_packing.cc @@ -673,7 +673,7 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len) template -static int unpack(grib_accessor* a, T* val, size_t* len) +static int unpack_helper(grib_accessor* a, T* val, size_t* len) { static_assert(std::is_floating_point::value, "Requires floating point numbers"); grib_accessor_data_complex_packing* self = (grib_accessor_data_complex_packing*)a; @@ -897,7 +897,7 @@ static int unpack(grib_accessor* a, T* val, size_t* len) static int unpack_double(grib_accessor* a, double* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_float(grib_accessor* a, float* val, size_t* len) @@ -905,7 +905,7 @@ static int unpack_float(grib_accessor* a, float* val, size_t* len) // TODO(maee): See ECC-1579 // Investigate why results are not bit-identical - // return unpack(a, val, len); + // return unpack_helper(a, val, len); int err = 0; size_t i = 0; @@ -914,7 +914,7 @@ static int unpack_float(grib_accessor* a, float* val, size_t* len) val8 = (double*)grib_context_malloc(a->context, size*(sizeof(double))); if (!val8) return GRIB_OUT_OF_MEMORY; - err = unpack(a, val8, len); + err = unpack_helper(a, val8, len); if (err) { grib_context_free(a->context,val8); return err; diff --git a/src/grib_accessor_class_data_g1second_order_general_packing.cc b/src/grib_accessor_class_data_g1second_order_general_packing.cc index 3e41fd3e0..1e241445b 100644 --- a/src/grib_accessor_class_data_g1second_order_general_packing.cc +++ b/src/grib_accessor_class_data_g1second_order_general_packing.cc @@ -192,7 +192,7 @@ static int value_count(grib_accessor* a, long* numberOfSecondOrderPackedValues) } template -static int unpack(grib_accessor* a, T* values, size_t* len) +static int unpack_helper(grib_accessor* a, T* values, size_t* len) { static_assert(std::is_floating_point::value, "Requires floating point numbers"); grib_accessor_data_g1second_order_general_packing* self = (grib_accessor_data_g1second_order_general_packing*)a; @@ -298,12 +298,12 @@ static int unpack(grib_accessor* a, T* values, size_t* len) static int unpack_float(grib_accessor* a, float* values, size_t* len) { - return unpack(a, values, len); + return unpack_helper(a, values, len); } static int unpack_double(grib_accessor* a, double* values, size_t* len) { - return unpack(a, values, len); + return unpack_helper(a, values, len); } static int pack_double(grib_accessor* a, const double* cval, size_t* len) diff --git a/src/grib_accessor_class_data_g1second_order_row_by_row_packing.cc b/src/grib_accessor_class_data_g1second_order_row_by_row_packing.cc index b801b3b1c..774cb869a 100644 --- a/src/grib_accessor_class_data_g1second_order_row_by_row_packing.cc +++ b/src/grib_accessor_class_data_g1second_order_row_by_row_packing.cc @@ -254,7 +254,7 @@ static int value_count(grib_accessor* a, long* count) } template -static int unpack(grib_accessor* a, T* values, size_t* len) +static int unpack_helper(grib_accessor* a, T* values, size_t* len) { grib_accessor_data_g1second_order_row_by_row_packing* self = (grib_accessor_data_g1second_order_row_by_row_packing*)a; grib_handle* gh = grib_handle_of_accessor(a); @@ -423,12 +423,12 @@ static int unpack(grib_accessor* a, T* values, size_t* len) static int unpack_float(grib_accessor* a, float* values, size_t* len) { - return unpack(a, values, len); + return unpack_helper(a, values, len); } static int unpack_double(grib_accessor* a, double* values, size_t* len) { - return unpack(a, values, len); + return unpack_helper(a, values, len); } static int pack_double(grib_accessor* a, const double* cval, size_t* len) diff --git a/src/grib_accessor_class_data_g22order_packing.cc b/src/grib_accessor_class_data_g22order_packing.cc index af462d667..65aacce2b 100644 --- a/src/grib_accessor_class_data_g22order_packing.cc +++ b/src/grib_accessor_class_data_g22order_packing.cc @@ -509,7 +509,7 @@ static int post_process(grib_context* c, long* vals, long len, long order, long } template -static int unpack(grib_accessor* a, T* val, const size_t* len) +static int unpack_helper(grib_accessor* a, T* val, const size_t* len) { static_assert(std::is_floating_point::value, "Requires floating points numbers"); grib_accessor_data_g22order_packing* self = reinterpret_cast(a); @@ -1854,12 +1854,12 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len) static int unpack_double(grib_accessor* a, double* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_float(grib_accessor* a, float* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_double_element(grib_accessor* a, size_t idx, double* val) diff --git a/src/grib_accessor_class_data_simple_packing.cc b/src/grib_accessor_class_data_simple_packing.cc index f8eed0d3c..1bff8a640 100644 --- a/src/grib_accessor_class_data_simple_packing.cc +++ b/src/grib_accessor_class_data_simple_packing.cc @@ -282,7 +282,7 @@ static int unpack_double_element_set(grib_accessor* a, const size_t* index_array } template -static int unpack(grib_accessor* a, T* val, size_t* len) +static int unpack_helper(grib_accessor* a, T* val, size_t* len) { static_assert(std::is_floating_point::value, "Requires floating point numbers"); @@ -421,12 +421,12 @@ static int unpack(grib_accessor* a, T* val, size_t* len) static int unpack_double(grib_accessor* a, double* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_float(grib_accessor* a, float* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int _unpack_double(grib_accessor* a, double* val, size_t* len, unsigned char* buf, long pos, size_t n_vals) diff --git a/src/grib_accessor_class_gen.cc b/src/grib_accessor_class_gen.cc index 75f84bebd..dd6728f41 100644 --- a/src/grib_accessor_class_gen.cc +++ b/src/grib_accessor_class_gen.cc @@ -309,7 +309,7 @@ static int unpack_long(grib_accessor* a, long* v, size_t* len) } template -static int unpack(grib_accessor* a, T* v, size_t* len) +static int unpack_helper(grib_accessor* a, T* v, size_t* len) { static_assert(std::is_floating_point::value, "Requires floating point numbers"); int type = GRIB_TYPE_UNDEFINED; @@ -346,12 +346,12 @@ static int unpack(grib_accessor* a, T* v, size_t* len) static int unpack_double(grib_accessor* a, double* v, size_t* len) { - return unpack(a, v, len); + return unpack_helper(a, v, len); } static int unpack_float(grib_accessor* a, float* v, size_t* len) { - return unpack(a, v, len); + return unpack_helper(a, v, len); } static int unpack_string(grib_accessor* a, char* v, size_t* len) diff --git a/src/grib_accessor_class_ibmfloat.cc b/src/grib_accessor_class_ibmfloat.cc index 27e6da1c5..6e7d697cf 100644 --- a/src/grib_accessor_class_ibmfloat.cc +++ b/src/grib_accessor_class_ibmfloat.cc @@ -128,7 +128,7 @@ static void init(grib_accessor* a, const long len, grib_arguments* arg) } template -static int unpack(grib_accessor* a, T* val, size_t* len) +static int unpack_helper(grib_accessor* a, T* val, size_t* len) { static_assert(std::is_floating_point::value, "Requires floating point numbers"); unsigned long rlen = 0; @@ -158,12 +158,12 @@ static int unpack(grib_accessor* a, T* val, size_t* len) static int unpack_double(grib_accessor* a, double* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_float(grib_accessor* a, float* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int pack_double(grib_accessor* a, const double* val, size_t* len) diff --git a/src/grib_accessor_class_ieeefloat.cc b/src/grib_accessor_class_ieeefloat.cc index d6fa411bb..68474bace 100644 --- a/src/grib_accessor_class_ieeefloat.cc +++ b/src/grib_accessor_class_ieeefloat.cc @@ -178,7 +178,7 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len) } template -static int unpack(grib_accessor* a, T* val, size_t* len) +static int unpack_helper(grib_accessor* a, T* val, size_t* len) { static_assert(std::is_floating_point::value, "Requires floating point numbers"); long rlen = 0; @@ -206,12 +206,12 @@ static int unpack(grib_accessor* a, T* val, size_t* len) static int unpack_double(grib_accessor* a, double* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static int unpack_float(grib_accessor* a, float* val, size_t* len) { - return unpack(a, val, len); + return unpack_helper(a, val, len); } static void update_size(grib_accessor* a, size_t s)