Skip to content

Commit

Permalink
Rename standard complex types
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF committed Jul 10, 2024
1 parent 14afc94 commit fcedcd6
Show file tree
Hide file tree
Showing 32 changed files with 482 additions and 482 deletions.
2 changes: 1 addition & 1 deletion HDF5Examples/C/H5T/116/h5ex_t_complex.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ main(void)
* type. The HDF5 library automatically converts between different
* complex number types.
*/
dset = H5Dcreate(file, DATASET, H5T_CPLX_IEEE_F64LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
dset = H5Dcreate(file, DATASET, H5T_COMPLEX_IEEE_F64LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
status = H5Dwrite(dset, H5T_NATIVE_FLOAT_COMPLEX, H5S_ALL, H5S_ALL, H5P_DEFAULT, wdata[0]);

/*
Expand Down
2 changes: 1 addition & 1 deletion HDF5Examples/C/H5T/116/h5ex_t_complex_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ main(void)
* type. The HDF5 library automatically converts between different
* complex number types.
*/
dset = H5Dcreate(file, DATASET, H5T_CPLX_IEEE_F64LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
dset = H5Dcreate(file, DATASET, H5T_COMPLEX_IEEE_F64LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);

/*
* Create a datatype for writing to the dataset. This datatype is a
Expand Down
2 changes: 1 addition & 1 deletion HDF5Examples/C/H5T/116/h5ex_t_complex_msvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ main(void)
* type. The HDF5 library automatically converts between different
* complex number types.
*/
dset = H5Dcreate(file, DATASET, H5T_CPLX_IEEE_F64LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
dset = H5Dcreate(file, DATASET, H5T_COMPLEX_IEEE_F64LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
status = H5Dwrite(dset, H5T_NATIVE_FLOAT_COMPLEX, H5S_ALL, H5S_ALL, H5P_DEFAULT, wdata[0]);

/*
Expand Down
6 changes: 3 additions & 3 deletions doxygen/dox/DDLBNF116.dox
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ This section contains a brief explanation of the symbols used in the DDL.
<enum_val> ::= <int_value>

<complex_type> ::= H5T_COMPLEX { <complex_base_type> <complex_base_type> } |
H5T_CPLX_IEEE_F16BE | H5T_CPLX_IEEE_F16LE |
H5T_CPLX_IEEE_F32BE | H5T_CPLX_IEEE_F32LE |
H5T_CPLX_IEEE_F64BE | H5T_CPLX_IEEE_F64LE |
H5T_COMPLEX_IEEE_F16BE | H5T_COMPLEX_IEEE_F16LE |
H5T_COMPLEX_IEEE_F32BE | H5T_COMPLEX_IEEE_F32LE |
H5T_COMPLEX_IEEE_F64BE | H5T_COMPLEX_IEEE_F64LE |
H5T_NATIVE_FLOAT_COMPLEX | H5T_NATIVE_DOUBLE_COMPLEX |
H5T_NATIVE_LDOUBLE_COMPLEX

Expand Down
2 changes: 1 addition & 1 deletion doxygen/dox/PredefinedDatatypeTables.dox
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* </div>
*
* <div>
* \snippet{doc} tables/predefinedDatatypes.dox predefined_cplx_datatypes_table
* \snippet{doc} tables/predefinedDatatypes.dox predefined_complex_datatypes_table
* </div>
*
* <div>
Expand Down
16 changes: 8 additions & 8 deletions doxygen/examples/tables/predefinedDatatypes.dox
Original file line number Diff line number Diff line change
Expand Up @@ -35,39 +35,39 @@
//! [predefined_ieee_datatypes_table]
*
*
//! [predefined_cplx_datatypes_table]
//! [predefined_complex_datatypes_table]
<table>
<caption>Predefined Complex Number Datatypes</caption>
<tr>
<th>Datatype</th>
<th>Description</th>
</tr>
<tr>
<td>#H5T_CPLX_IEEE_F16BE</td>
<td>#H5T_COMPLEX_IEEE_F16BE</td>
<td>Complex number of 2 16-bit big-endian IEEE floating point numbers</td>
</tr>
<tr>
<td>#H5T_CPLX_IEEE_F16LE</td>
<td>#H5T_COMPLEX_IEEE_F16LE</td>
<td>Complex number of 2 16-bit little-endian IEEE floating point numbers</td>
</tr>
<tr>
<td>#H5T_CPLX_IEEE_F32BE</td>
<td>#H5T_COMPLEX_IEEE_F32BE</td>
<td>Complex number of 2 32-bit big-endian IEEE floating point numbers</td>
</tr>
<tr>
<td>#H5T_CPLX_IEEE_F32LE</td>
<td>#H5T_COMPLEX_IEEE_F32LE</td>
<td>Complex number of 2 32-bit little-endian IEEE floating point numbers</td>
</tr>
<tr>
<td>#H5T_CPLX_IEEE_F64BE</td>
<td>#H5T_COMPLEX_IEEE_F64BE</td>
<td>Complex number of 2 64-bit big-endian IEEE floating point numbers</td>
</tr>
<tr>
<td>#H5T_CPLX_IEEE_F64LE</td>
<td>#H5T_COMPLEX_IEEE_F64LE</td>
<td>Complex number of 2 64-bit little-endian IEEE floating point numbers</td>
</tr>
</table>
//! [predefined_cplx_datatypes_table]
//! [predefined_complex_datatypes_table]
*
*
//! [predefined_std_datatypes_table]
Expand Down
390 changes: 195 additions & 195 deletions hl/src/H5LTanalyze.c

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions hl/src/H5LTanalyze.l
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ H5T_NATIVE_FLOAT {return hid(H5T_NATIVE_FLOAT_TOKEN);}
H5T_NATIVE_DOUBLE {return hid(H5T_NATIVE_DOUBLE_TOKEN);}
H5T_NATIVE_LDOUBLE {return hid(H5T_NATIVE_LDOUBLE_TOKEN);}

H5T_CPLX_IEEE_F16BE {return hid(H5T_CPLX_IEEE_F16BE_TOKEN);}
H5T_CPLX_IEEE_F16LE {return hid(H5T_CPLX_IEEE_F16LE_TOKEN);}
H5T_CPLX_IEEE_F32BE {return hid(H5T_CPLX_IEEE_F32BE_TOKEN);}
H5T_CPLX_IEEE_F32LE {return hid(H5T_CPLX_IEEE_F32LE_TOKEN);}
H5T_CPLX_IEEE_F64BE {return hid(H5T_CPLX_IEEE_F64BE_TOKEN);}
H5T_CPLX_IEEE_F64LE {return hid(H5T_CPLX_IEEE_F64LE_TOKEN);}
H5T_COMPLEX_IEEE_F16BE {return hid(H5T_COMPLEX_IEEE_F16BE_TOKEN);}
H5T_COMPLEX_IEEE_F16LE {return hid(H5T_COMPLEX_IEEE_F16LE_TOKEN);}
H5T_COMPLEX_IEEE_F32BE {return hid(H5T_COMPLEX_IEEE_F32BE_TOKEN);}
H5T_COMPLEX_IEEE_F32LE {return hid(H5T_COMPLEX_IEEE_F32LE_TOKEN);}
H5T_COMPLEX_IEEE_F64BE {return hid(H5T_COMPLEX_IEEE_F64BE_TOKEN);}
H5T_COMPLEX_IEEE_F64LE {return hid(H5T_COMPLEX_IEEE_F64LE_TOKEN);}
H5T_NATIVE_FLOAT_COMPLEX {return hid(H5T_NATIVE_FLOAT_COMPLEX_TOKEN);}
H5T_NATIVE_DOUBLE_COMPLEX {return hid(H5T_NATIVE_DOUBLE_COMPLEX_TOKEN);}
H5T_NATIVE_LDOUBLE_COMPLEX {return hid(H5T_NATIVE_LDOUBLE_COMPLEX_TOKEN);}
Expand Down
42 changes: 21 additions & 21 deletions hl/src/H5LTparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ enum yysymbol_kind_t
YYSYMBOL_H5T_NATIVE_FLOAT_TOKEN = 37, /* H5T_NATIVE_FLOAT_TOKEN */
YYSYMBOL_H5T_NATIVE_DOUBLE_TOKEN = 38, /* H5T_NATIVE_DOUBLE_TOKEN */
YYSYMBOL_H5T_NATIVE_LDOUBLE_TOKEN = 39, /* H5T_NATIVE_LDOUBLE_TOKEN */
YYSYMBOL_H5T_CPLX_IEEE_F16BE_TOKEN = 40, /* H5T_CPLX_IEEE_F16BE_TOKEN */
YYSYMBOL_H5T_CPLX_IEEE_F16LE_TOKEN = 41, /* H5T_CPLX_IEEE_F16LE_TOKEN */
YYSYMBOL_H5T_CPLX_IEEE_F32BE_TOKEN = 42, /* H5T_CPLX_IEEE_F32BE_TOKEN */
YYSYMBOL_H5T_CPLX_IEEE_F32LE_TOKEN = 43, /* H5T_CPLX_IEEE_F32LE_TOKEN */
YYSYMBOL_H5T_CPLX_IEEE_F64BE_TOKEN = 44, /* H5T_CPLX_IEEE_F64BE_TOKEN */
YYSYMBOL_H5T_CPLX_IEEE_F64LE_TOKEN = 45, /* H5T_CPLX_IEEE_F64LE_TOKEN */
YYSYMBOL_H5T_COMPLEX_IEEE_F16BE_TOKEN = 40, /* H5T_COMPLEX_IEEE_F16BE_TOKEN */
YYSYMBOL_H5T_COMPLEX_IEEE_F16LE_TOKEN = 41, /* H5T_COMPLEX_IEEE_F16LE_TOKEN */
YYSYMBOL_H5T_COMPLEX_IEEE_F32BE_TOKEN = 42, /* H5T_COMPLEX_IEEE_F32BE_TOKEN */
YYSYMBOL_H5T_COMPLEX_IEEE_F32LE_TOKEN = 43, /* H5T_COMPLEX_IEEE_F32LE_TOKEN */
YYSYMBOL_H5T_COMPLEX_IEEE_F64BE_TOKEN = 44, /* H5T_COMPLEX_IEEE_F64BE_TOKEN */
YYSYMBOL_H5T_COMPLEX_IEEE_F64LE_TOKEN = 45, /* H5T_COMPLEX_IEEE_F64LE_TOKEN */
YYSYMBOL_H5T_NATIVE_FLOAT_COMPLEX_TOKEN = 46, /* H5T_NATIVE_FLOAT_COMPLEX_TOKEN */
YYSYMBOL_H5T_NATIVE_DOUBLE_COMPLEX_TOKEN = 47, /* H5T_NATIVE_DOUBLE_COMPLEX_TOKEN */
YYSYMBOL_H5T_NATIVE_LDOUBLE_COMPLEX_TOKEN = 48, /* H5T_NATIVE_LDOUBLE_COMPLEX_TOKEN */
Expand Down Expand Up @@ -739,9 +739,9 @@ static const char *const yytname[] =
"H5T_IEEE_F64BE_TOKEN", "H5T_IEEE_F64LE_TOKEN",
"H5T_NATIVE_FLOAT16_TOKEN", "H5T_NATIVE_FLOAT_TOKEN",
"H5T_NATIVE_DOUBLE_TOKEN", "H5T_NATIVE_LDOUBLE_TOKEN",
"H5T_CPLX_IEEE_F16BE_TOKEN", "H5T_CPLX_IEEE_F16LE_TOKEN",
"H5T_CPLX_IEEE_F32BE_TOKEN", "H5T_CPLX_IEEE_F32LE_TOKEN",
"H5T_CPLX_IEEE_F64BE_TOKEN", "H5T_CPLX_IEEE_F64LE_TOKEN",
"H5T_COMPLEX_IEEE_F16BE_TOKEN", "H5T_COMPLEX_IEEE_F16LE_TOKEN",
"H5T_COMPLEX_IEEE_F32BE_TOKEN", "H5T_COMPLEX_IEEE_F32LE_TOKEN",
"H5T_COMPLEX_IEEE_F64BE_TOKEN", "H5T_COMPLEX_IEEE_F64LE_TOKEN",
"H5T_NATIVE_FLOAT_COMPLEX_TOKEN", "H5T_NATIVE_DOUBLE_COMPLEX_TOKEN",
"H5T_NATIVE_LDOUBLE_COMPLEX_TOKEN", "H5T_STRING_TOKEN", "STRSIZE_TOKEN",
"STRPAD_TOKEN", "CSET_TOKEN", "CTYPE_TOKEN", "H5T_VARIABLE_TOKEN",
Expand Down Expand Up @@ -1790,39 +1790,39 @@ yyparse (void)
#line 1760 "hl/src//H5LTparse.c"
break;

case 73: /* complex_type: H5T_CPLX_IEEE_F16LE_TOKEN */
case 73: /* complex_type: H5T_COMPLEX_IEEE_F16LE_TOKEN */
#line 258 "hl/src//H5LTparse.y"
{ (yyval.hid) = H5Tcopy(H5T_CPLX_IEEE_F16LE); }
{ (yyval.hid) = H5Tcopy(H5T_COMPLEX_IEEE_F16LE); }
#line 1766 "hl/src//H5LTparse.c"
break;

case 74: /* complex_type: H5T_CPLX_IEEE_F16BE_TOKEN */
case 74: /* complex_type: H5T_COMPLEX_IEEE_F16BE_TOKEN */
#line 259 "hl/src//H5LTparse.y"
{ (yyval.hid) = H5Tcopy(H5T_CPLX_IEEE_F16BE); }
{ (yyval.hid) = H5Tcopy(H5T_COMPLEX_IEEE_F16BE); }
#line 1772 "hl/src//H5LTparse.c"
break;

case 75: /* complex_type: H5T_CPLX_IEEE_F32LE_TOKEN */
case 75: /* complex_type: H5T_COMPLEX_IEEE_F32LE_TOKEN */
#line 260 "hl/src//H5LTparse.y"
{ (yyval.hid) = H5Tcopy(H5T_CPLX_IEEE_F32LE); }
{ (yyval.hid) = H5Tcopy(H5T_COMPLEX_IEEE_F32LE); }
#line 1778 "hl/src//H5LTparse.c"
break;

case 76: /* complex_type: H5T_CPLX_IEEE_F32BE_TOKEN */
case 76: /* complex_type: H5T_COMPLEX_IEEE_F32BE_TOKEN */
#line 261 "hl/src//H5LTparse.y"
{ (yyval.hid) = H5Tcopy(H5T_CPLX_IEEE_F32BE); }
{ (yyval.hid) = H5Tcopy(H5T_COMPLEX_IEEE_F32BE); }
#line 1784 "hl/src//H5LTparse.c"
break;

case 77: /* complex_type: H5T_CPLX_IEEE_F64LE_TOKEN */
case 77: /* complex_type: H5T_COMPLEX_IEEE_F64LE_TOKEN */
#line 262 "hl/src//H5LTparse.y"
{ (yyval.hid) = H5Tcopy(H5T_CPLX_IEEE_F64LE); }
{ (yyval.hid) = H5Tcopy(H5T_COMPLEX_IEEE_F64LE); }
#line 1790 "hl/src//H5LTparse.c"
break;

case 78: /* complex_type: H5T_CPLX_IEEE_F64BE_TOKEN */
case 78: /* complex_type: H5T_COMPLEX_IEEE_F64BE_TOKEN */
#line 263 "hl/src//H5LTparse.y"
{ (yyval.hid) = H5Tcopy(H5T_CPLX_IEEE_F64BE); }
{ (yyval.hid) = H5Tcopy(H5T_COMPLEX_IEEE_F64BE); }
#line 1796 "hl/src//H5LTparse.c"
break;

Expand Down
12 changes: 6 additions & 6 deletions hl/src/H5LTparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ extern int H5LTyydebug;
H5T_NATIVE_FLOAT_TOKEN = 292, /* H5T_NATIVE_FLOAT_TOKEN */
H5T_NATIVE_DOUBLE_TOKEN = 293, /* H5T_NATIVE_DOUBLE_TOKEN */
H5T_NATIVE_LDOUBLE_TOKEN = 294, /* H5T_NATIVE_LDOUBLE_TOKEN */
H5T_CPLX_IEEE_F16BE_TOKEN = 295, /* H5T_CPLX_IEEE_F16BE_TOKEN */
H5T_CPLX_IEEE_F16LE_TOKEN = 296, /* H5T_CPLX_IEEE_F16LE_TOKEN */
H5T_CPLX_IEEE_F32BE_TOKEN = 297, /* H5T_CPLX_IEEE_F32BE_TOKEN */
H5T_CPLX_IEEE_F32LE_TOKEN = 298, /* H5T_CPLX_IEEE_F32LE_TOKEN */
H5T_CPLX_IEEE_F64BE_TOKEN = 299, /* H5T_CPLX_IEEE_F64BE_TOKEN */
H5T_CPLX_IEEE_F64LE_TOKEN = 300, /* H5T_CPLX_IEEE_F64LE_TOKEN */
H5T_COMPLEX_IEEE_F16BE_TOKEN = 295, /* H5T_COMPLEX_IEEE_F16BE_TOKEN */
H5T_COMPLEX_IEEE_F16LE_TOKEN = 296, /* H5T_COMPLEX_IEEE_F16LE_TOKEN */
H5T_COMPLEX_IEEE_F32BE_TOKEN = 297, /* H5T_COMPLEX_IEEE_F32BE_TOKEN */
H5T_COMPLEX_IEEE_F32LE_TOKEN = 298, /* H5T_COMPLEX_IEEE_F32LE_TOKEN */
H5T_COMPLEX_IEEE_F64BE_TOKEN = 299, /* H5T_COMPLEX_IEEE_F64BE_TOKEN */
H5T_COMPLEX_IEEE_F64LE_TOKEN = 300, /* H5T_COMPLEX_IEEE_F64LE_TOKEN */
H5T_NATIVE_FLOAT_COMPLEX_TOKEN = 301, /* H5T_NATIVE_FLOAT_COMPLEX_TOKEN */
H5T_NATIVE_DOUBLE_COMPLEX_TOKEN = 302, /* H5T_NATIVE_DOUBLE_COMPLEX_TOKEN */
H5T_NATIVE_LDOUBLE_COMPLEX_TOKEN = 303, /* H5T_NATIVE_LDOUBLE_COMPLEX_TOKEN */
Expand Down
18 changes: 9 additions & 9 deletions hl/src/H5LTparse.y
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ static char* enum_memb_symbol; /*enum member symbol string*/
%token <hid> H5T_IEEE_F32BE_TOKEN H5T_IEEE_F32LE_TOKEN H5T_IEEE_F64BE_TOKEN H5T_IEEE_F64LE_TOKEN
%token <hid> H5T_NATIVE_FLOAT16_TOKEN H5T_NATIVE_FLOAT_TOKEN H5T_NATIVE_DOUBLE_TOKEN H5T_NATIVE_LDOUBLE_TOKEN

%token <hid> H5T_CPLX_IEEE_F16BE_TOKEN H5T_CPLX_IEEE_F16LE_TOKEN
%token <hid> H5T_CPLX_IEEE_F32BE_TOKEN H5T_CPLX_IEEE_F32LE_TOKEN
%token <hid> H5T_CPLX_IEEE_F64BE_TOKEN H5T_CPLX_IEEE_F64LE_TOKEN
%token <hid> H5T_COMPLEX_IEEE_F16BE_TOKEN H5T_COMPLEX_IEEE_F16LE_TOKEN
%token <hid> H5T_COMPLEX_IEEE_F32BE_TOKEN H5T_COMPLEX_IEEE_F32LE_TOKEN
%token <hid> H5T_COMPLEX_IEEE_F64BE_TOKEN H5T_COMPLEX_IEEE_F64LE_TOKEN
%token <hid> H5T_NATIVE_FLOAT_COMPLEX_TOKEN H5T_NATIVE_DOUBLE_COMPLEX_TOKEN H5T_NATIVE_LDOUBLE_COMPLEX_TOKEN

%token <ival> H5T_STRING_TOKEN STRSIZE_TOKEN STRPAD_TOKEN CSET_TOKEN CTYPE_TOKEN H5T_VARIABLE_TOKEN
Expand Down Expand Up @@ -255,12 +255,12 @@ vlen_type : H5T_VLEN_TOKEN '{' ddl_type '}'
complex_type : H5T_NATIVE_FLOAT_COMPLEX_TOKEN { $<hid>$ = H5Tcopy(H5T_NATIVE_FLOAT_COMPLEX); }
| H5T_NATIVE_DOUBLE_COMPLEX_TOKEN { $<hid>$ = H5Tcopy(H5T_NATIVE_DOUBLE_COMPLEX); }
| H5T_NATIVE_LDOUBLE_COMPLEX_TOKEN { $<hid>$ = H5Tcopy(H5T_NATIVE_LDOUBLE_COMPLEX); }
| H5T_CPLX_IEEE_F16LE_TOKEN { $<hid>$ = H5Tcopy(H5T_CPLX_IEEE_F16LE); }
| H5T_CPLX_IEEE_F16BE_TOKEN { $<hid>$ = H5Tcopy(H5T_CPLX_IEEE_F16BE); }
| H5T_CPLX_IEEE_F32LE_TOKEN { $<hid>$ = H5Tcopy(H5T_CPLX_IEEE_F32LE); }
| H5T_CPLX_IEEE_F32BE_TOKEN { $<hid>$ = H5Tcopy(H5T_CPLX_IEEE_F32BE); }
| H5T_CPLX_IEEE_F64LE_TOKEN { $<hid>$ = H5Tcopy(H5T_CPLX_IEEE_F64LE); }
| H5T_CPLX_IEEE_F64BE_TOKEN { $<hid>$ = H5Tcopy(H5T_CPLX_IEEE_F64BE); }
| H5T_COMPLEX_IEEE_F16LE_TOKEN { $<hid>$ = H5Tcopy(H5T_COMPLEX_IEEE_F16LE); }
| H5T_COMPLEX_IEEE_F16BE_TOKEN { $<hid>$ = H5Tcopy(H5T_COMPLEX_IEEE_F16BE); }
| H5T_COMPLEX_IEEE_F32LE_TOKEN { $<hid>$ = H5Tcopy(H5T_COMPLEX_IEEE_F32LE); }
| H5T_COMPLEX_IEEE_F32BE_TOKEN { $<hid>$ = H5Tcopy(H5T_COMPLEX_IEEE_F32BE); }
| H5T_COMPLEX_IEEE_F64LE_TOKEN { $<hid>$ = H5Tcopy(H5T_COMPLEX_IEEE_F64LE); }
| H5T_COMPLEX_IEEE_F64BE_TOKEN { $<hid>$ = H5Tcopy(H5T_COMPLEX_IEEE_F64BE); }
| H5T_COMPLEX_TOKEN '{' ddl_type '}'
{ $<hid>$ = H5Tcomplex_create($<hid>3); H5Tclose($<hid>3); }
;
Expand Down
36 changes: 18 additions & 18 deletions hl/test/test_lite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1952,68 +1952,68 @@ test_complex(void)
goto out;
#endif

if ((dtype = H5LTtext_to_dtype("H5T_CPLX_IEEE_F16LE\n", H5LT_DDL)) < 0)
if ((dtype = H5LTtext_to_dtype("H5T_COMPLEX_IEEE_F16LE\n", H5LT_DDL)) < 0)
goto out;
if ((type_class = H5Tget_class(dtype)) < 0)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F16LE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F16LE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;

if ((dtype = H5LTtext_to_dtype("H5T_CPLX_IEEE_F16BE\n", H5LT_DDL)) < 0)
if ((dtype = H5LTtext_to_dtype("H5T_COMPLEX_IEEE_F16BE\n", H5LT_DDL)) < 0)
goto out;
if ((type_class = H5Tget_class(dtype)) < 0)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F16BE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F16BE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;

if ((dtype = H5LTtext_to_dtype("H5T_CPLX_IEEE_F32LE\n", H5LT_DDL)) < 0)
if ((dtype = H5LTtext_to_dtype("H5T_COMPLEX_IEEE_F32LE\n", H5LT_DDL)) < 0)
goto out;
if ((type_class = H5Tget_class(dtype)) < 0)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F32LE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F32LE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;

if ((dtype = H5LTtext_to_dtype("H5T_CPLX_IEEE_F32BE\n", H5LT_DDL)) < 0)
if ((dtype = H5LTtext_to_dtype("H5T_COMPLEX_IEEE_F32BE\n", H5LT_DDL)) < 0)
goto out;
if ((type_class = H5Tget_class(dtype)) < 0)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F32BE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F32BE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;

if ((dtype = H5LTtext_to_dtype("H5T_CPLX_IEEE_F64LE\n", H5LT_DDL)) < 0)
if ((dtype = H5LTtext_to_dtype("H5T_COMPLEX_IEEE_F64LE\n", H5LT_DDL)) < 0)
goto out;
if ((type_class = H5Tget_class(dtype)) < 0)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F64LE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F64LE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;

if ((dtype = H5LTtext_to_dtype("H5T_CPLX_IEEE_F64BE\n", H5LT_DDL)) < 0)
if ((dtype = H5LTtext_to_dtype("H5T_COMPLEX_IEEE_F64BE\n", H5LT_DDL)) < 0)
goto out;
if ((type_class = H5Tget_class(dtype)) < 0)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F64BE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F64BE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;
Expand All @@ -2024,7 +2024,7 @@ test_complex(void)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F16LE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F16LE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;
Expand All @@ -2035,7 +2035,7 @@ test_complex(void)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F16BE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F16BE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;
Expand All @@ -2046,7 +2046,7 @@ test_complex(void)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F32LE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F32LE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;
Expand All @@ -2057,7 +2057,7 @@ test_complex(void)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F32BE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F32BE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;
Expand All @@ -2068,7 +2068,7 @@ test_complex(void)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F64LE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F64LE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;
Expand All @@ -2079,7 +2079,7 @@ test_complex(void)
goto out;
if (type_class != H5T_COMPLEX)
goto out;
if (!H5Tequal(dtype, H5T_CPLX_IEEE_F64BE))
if (!H5Tequal(dtype, H5T_COMPLEX_IEEE_F64BE))
goto out;
if (H5Tclose(dtype) < 0)
goto out;
Expand Down
Loading

0 comments on commit fcedcd6

Please sign in to comment.