Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 26, 2024
1 parent 3794564 commit 76844fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
12 changes: 5 additions & 7 deletions src/H5Tconv_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,6 @@ typedef struct H5T_conv_hw_t {

#endif


#define H5T_CONV_zZ_CORE(STYPE, DTYPE, S, D, ST, DT, D_MIN, D_MAX) \
{ \
H5T_CONV_CAST_Z(zZ, STYPE, DTYPE, S, -, -, D, ST, DT); \
Expand Down Expand Up @@ -990,13 +989,13 @@ typedef struct H5T_conv_hw_t {
*/ \
if (sr_over || si_over) { \
except_ret = (conv_ctx->u.conv.cb_struct.func)( \
H5T_CONV_EXCEPT_RANGE_HI, conv_ctx->u.conv.src_type_id, \
conv_ctx->u.conv.dst_type_id, S, D, conv_ctx->u.conv.cb_struct.user_data); \
H5T_CONV_EXCEPT_RANGE_HI, conv_ctx->u.conv.src_type_id, conv_ctx->u.conv.dst_type_id, S, \
D, conv_ctx->u.conv.cb_struct.user_data); \
} \
else if (sr_under || si_under) { \
except_ret = (conv_ctx->u.conv.cb_struct.func)( \
H5T_CONV_EXCEPT_RANGE_LOW, conv_ctx->u.conv.src_type_id, \
conv_ctx->u.conv.dst_type_id, S, D, conv_ctx->u.conv.cb_struct.user_data); \
H5T_CONV_EXCEPT_RANGE_LOW, conv_ctx->u.conv.src_type_id, conv_ctx->u.conv.dst_type_id, \
S, D, conv_ctx->u.conv.cb_struct.user_data); \
} \
\
/* If user conversion exception function handled the exception, do nothing. \
Expand Down Expand Up @@ -1293,8 +1292,7 @@ typedef struct H5T_conv_hw_t {
/* Let compiler convert if case is ignored by user handler*/ \
H5T_CONV_CAST_Z(xZ, STYPE, DTYPE, S, -, -, D, ST, DT); \
else if (except_ret == H5T_CONV_ABORT) \
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTCONVERT, FAIL, \
"can't handle conversion exception"); \
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTCONVERT, FAIL, "can't handle conversion exception"); \
/* if(except_ret==H5T_CONV_HANDLED): Fall through, user handled it */ \
} \
else \
Expand Down
9 changes: 6 additions & 3 deletions src/H5private.h
Original file line number Diff line number Diff line change
Expand Up @@ -871,13 +871,16 @@ H5_DLL int HDvasprintf(char **bufp, const char *fmt, va_list _ap);
*/
#ifdef H5_HAVE_COMPLEX_NUMBERS
#ifndef H5_CMPLXF
#define H5_CMPLXF(real, imag) ((H5_float_complex)((float)(real) + (float)(imag) * (H5_float_complex)_Complex_I))
#define H5_CMPLXF(real, imag) \
((H5_float_complex)((float)(real) + (float)(imag) * (H5_float_complex)_Complex_I))
#endif
#ifndef H5_CMPLX
#define H5_CMPLX(real, imag) ((H5_double_complex)((double)(real) + (double)(imag) * (H5_double_complex)_Complex_I))
#define H5_CMPLX(real, imag) \
((H5_double_complex)((double)(real) + (double)(imag) * (H5_double_complex)_Complex_I))
#endif
#ifndef H5_CMPLXL
#define H5_CMPLXL(real, imag) ((H5_ldouble_complex)((long double)(real) + (long double)(imag) * (H5_ldouble_complex)_Complex_I))
#define H5_CMPLXL(real, imag) \
((H5_ldouble_complex)((long double)(real) + (long double)(imag) * (H5_ldouble_complex)_Complex_I))
#endif
#endif

Expand Down

0 comments on commit 76844fe

Please sign in to comment.