Skip to content

Commit adc8a52

Browse files
Committing clang-format changes
1 parent e93ad7f commit adc8a52

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

test/dtypes.c

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6875,7 +6875,8 @@ test_bfloat16(void)
68756875

68766876
if (type_prec != 16) {
68776877
H5_FAILED();
6878-
printf("Datatype precision for H5T_FLOAT_BFLOAT16LE was incorrect (expected 16, got %zu)\n", type_prec);
6878+
printf("Datatype precision for H5T_FLOAT_BFLOAT16LE was incorrect (expected 16, got %zu)\n",
6879+
type_prec);
68796880
goto error;
68806881
}
68816882

@@ -6887,7 +6888,8 @@ test_bfloat16(void)
68876888

68886889
if (type_prec != 16) {
68896890
H5_FAILED();
6890-
printf("Datatype precision for H5T_FLOAT_BFLOAT16BE was incorrect (expected 16, got %zu)\n", type_prec);
6891+
printf("Datatype precision for H5T_FLOAT_BFLOAT16BE was incorrect (expected 16, got %zu)\n",
6892+
type_prec);
68916893
goto error;
68926894
}
68936895

@@ -6923,7 +6925,8 @@ test_bfloat16(void)
69236925

69246926
if (lsb_pad != H5T_PAD_ZERO || msb_pad != H5T_PAD_ZERO) {
69256927
H5_FAILED();
6926-
printf("Datatype padding type for H5T_FLOAT_BFLOAT16LE was incorrect (expected H5T_PAD_ZERO, got lsb pad "
6928+
printf("Datatype padding type for H5T_FLOAT_BFLOAT16LE was incorrect (expected H5T_PAD_ZERO, got lsb "
6929+
"pad "
69276930
"type %d, msb pad type %d)\n",
69286931
lsb_pad, msb_pad);
69296932
goto error;
@@ -6937,7 +6940,8 @@ test_bfloat16(void)
69376940

69386941
if (lsb_pad != H5T_PAD_ZERO || msb_pad != H5T_PAD_ZERO) {
69396942
H5_FAILED();
6940-
printf("Datatype padding type for H5T_FLOAT_BFLOAT16BE was incorrect (expected H5T_PAD_ZERO, got lsb pad "
6943+
printf("Datatype padding type for H5T_FLOAT_BFLOAT16BE was incorrect (expected H5T_PAD_ZERO, got lsb "
6944+
"pad "
69416945
"type %d, msb pad type %d)\n",
69426946
lsb_pad, msb_pad);
69436947
goto error;
@@ -7031,7 +7035,8 @@ test_bfloat16(void)
70317035

70327036
if (inpad != H5T_PAD_ZERO) {
70337037
H5_FAILED();
7034-
printf("Datatype unused bits padding type for H5T_FLOAT_BFLOAT16LE was incorrect (expected H5T_PAD_ZERO, "
7038+
printf("Datatype unused bits padding type for H5T_FLOAT_BFLOAT16LE was incorrect (expected "
7039+
"H5T_PAD_ZERO, "
70357040
"got pad type %d)\n",
70367041
inpad);
70377042
goto error;
@@ -7045,7 +7050,8 @@ test_bfloat16(void)
70457050

70467051
if (inpad != H5T_PAD_ZERO) {
70477052
H5_FAILED();
7048-
printf("Datatype unused bits padding type for H5T_FLOAT_BFLOAT16BE was incorrect (expected H5T_PAD_ZERO, "
7053+
printf("Datatype unused bits padding type for H5T_FLOAT_BFLOAT16BE was incorrect (expected "
7054+
"H5T_PAD_ZERO, "
70497055
"got pad type %d)\n",
70507056
inpad);
70517057
goto error;
@@ -7116,8 +7122,8 @@ test_bfloat16(void)
71167122
goto error;
71177123
}
71187124

7119-
if ((dset_id = H5Dcreate2(fid, "Dataset", H5T_FLOAT_BFLOAT16LE, space_id, H5P_DEFAULT, dcpl_id, H5P_DEFAULT)) <
7120-
0) {
7125+
if ((dset_id = H5Dcreate2(fid, "Dataset", H5T_FLOAT_BFLOAT16LE, space_id, H5P_DEFAULT, dcpl_id,
7126+
H5P_DEFAULT)) < 0) {
71217127
H5_FAILED();
71227128
AT();
71237129
printf("Can't create dataset\n");

tools/test/h5dump/h5dumpgentest.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12771,7 +12771,8 @@ gent_bfloat16(void)
1277112771
dims[0] = F97_XDIM;
1277212772
dims[1] = F97_YDIM;
1277312773
space = H5Screate_simple(2, dims, NULL);
12774-
dataset = H5Dcreate2(fid, F97_DATASET, H5T_FLOAT_BFLOAT16LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
12774+
dataset =
12775+
H5Dcreate2(fid, F97_DATASET, H5T_FLOAT_BFLOAT16LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
1277512776

1277612777
val = (float)F97_YDIM;
1277712778
for (size_t i = 0; i < dims[0]; i++) {
@@ -12846,7 +12847,8 @@ gent_bfloat16_be(void)
1284612847
dims[0] = F98_XDIM;
1284712848
dims[1] = F98_YDIM;
1284812849
space = H5Screate_simple(2, dims, NULL);
12849-
dataset = H5Dcreate2(fid, F98_DATASET, H5T_FLOAT_BFLOAT16BE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
12850+
dataset =
12851+
H5Dcreate2(fid, F98_DATASET, H5T_FLOAT_BFLOAT16BE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
1285012852

1285112853
val = (float)F98_YDIM;
1285212854
for (size_t i = 0; i < dims[0]; i++) {

0 commit comments

Comments
 (0)