mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Update clang format to get correct merge compares (#5253)
This commit is contained in:
@@ -18,6 +18,6 @@ jobs:
|
||||
with:
|
||||
source: '.'
|
||||
extensions: 'c,h,cpp,hpp,java'
|
||||
clangFormatVersion: 13
|
||||
clangFormatVersion: 17
|
||||
style: file
|
||||
exclude: './config ./hl/src/H5LTanalyze.c ./hl/src/H5LTparse.c ./hl/src/H5LTparse.h ./src/H5Epubgen.h ./src/H5Einit.h ./src/H5Eterm.h ./src/H5Edefin.h ./src/H5version.h ./src/H5overflow.h'
|
||||
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
with:
|
||||
source: '.'
|
||||
extensions: 'c,h,cpp,hpp,java'
|
||||
clangFormatVersion: 13
|
||||
clangFormatVersion: 17
|
||||
inplace: True
|
||||
style: file
|
||||
exclude: './config ./hl/src/H5LTanalyze.c ./hl/src/H5LTparse.c ./hl/src/H5LTparse.h ./src/H5Epubgen.h ./src/H5Einit.h ./src/H5Eterm.h ./src/H5Edefin.h ./src/H5version.h ./src/H5overflow.h'
|
||||
|
||||
@@ -124,7 +124,7 @@ main(void)
|
||||
#if H5_VERSION_GE(1, 12, 0) && !defined(H5_USE_110_API) && !defined(H5_USE_18_API) && !defined(H5_USE_16_API)
|
||||
rdata = (H5R_ref_t *)malloc(dims[0] * sizeof(H5R_ref_t));
|
||||
#else
|
||||
rdata = (hobj_ref_t *)malloc(dims[0] * sizeof(hobj_ref_t));
|
||||
rdata = (hobj_ref_t *)malloc(dims[0] * sizeof(hobj_ref_t));
|
||||
#endif
|
||||
/*
|
||||
* Read the data.
|
||||
|
||||
@@ -136,7 +136,7 @@ main(void)
|
||||
#if H5_VERSION_GE(1, 12, 0) && !defined(H5_USE_110_API) && !defined(H5_USE_18_API) && !defined(H5_USE_16_API)
|
||||
rdata = (H5R_ref_t *)malloc(dims[0] * sizeof(H5R_ref_t));
|
||||
#else
|
||||
rdata = (hobj_ref_t *)malloc(dims[0] * sizeof(hobj_ref_t));
|
||||
rdata = (hobj_ref_t *)malloc(dims[0] * sizeof(hobj_ref_t));
|
||||
#endif
|
||||
/*
|
||||
* Read the data.
|
||||
|
||||
@@ -154,7 +154,7 @@ main(void)
|
||||
#if H5_VERSION_GE(1, 12, 0) && !defined(H5_USE_110_API) && !defined(H5_USE_18_API) && !defined(H5_USE_16_API)
|
||||
rdata = (H5R_ref_t *)malloc(dims[0] * sizeof(H5R_ref_t));
|
||||
#else
|
||||
rdata = (hdset_reg_ref_t *)malloc(dims[0] * sizeof(hdset_reg_ref_t));
|
||||
rdata = (hdset_reg_ref_t *)malloc(dims[0] * sizeof(hdset_reg_ref_t));
|
||||
#endif
|
||||
|
||||
status = H5Sclose(space);
|
||||
|
||||
@@ -169,7 +169,7 @@ main(void)
|
||||
#if H5_VERSION_GE(1, 12, 0) && !defined(H5_USE_110_API) && !defined(H5_USE_18_API) && !defined(H5_USE_16_API)
|
||||
rdata = (H5R_ref_t *)malloc(dims[0] * sizeof(H5R_ref_t));
|
||||
#else
|
||||
rdata = (hdset_reg_ref_t *)malloc(dims[0] * sizeof(hdset_reg_ref_t));
|
||||
rdata = (hdset_reg_ref_t *)malloc(dims[0] * sizeof(hdset_reg_ref_t));
|
||||
#endif
|
||||
|
||||
status = H5Sclose(space);
|
||||
|
||||
@@ -36,8 +36,8 @@ main(void)
|
||||
herr_t status;
|
||||
hsize_t chunk_dims[2] = {2, 5};
|
||||
int data[3][3] = {{1, 1, 1}, /* data to write */
|
||||
{1, 1, 1},
|
||||
{1, 1, 1}};
|
||||
{1, 1, 1},
|
||||
{1, 1, 1}};
|
||||
|
||||
/* Variables used in extending and writing to the extended portion of dataset */
|
||||
hsize_t size[2];
|
||||
|
||||
@@ -33,8 +33,8 @@ main(void)
|
||||
hsize_t maxdims[2] = {H5S_UNLIMITED, H5S_UNLIMITED};
|
||||
hsize_t chunk_dims[2] = {2, 5};
|
||||
int data[3][3] = {{1, 1, 1}, // data to write
|
||||
{1, 1, 1},
|
||||
{1, 1, 1}};
|
||||
{1, 1, 1},
|
||||
{1, 1, 1}};
|
||||
|
||||
// Variables used in extending and writing to the extended portion of dataset
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ public class H5Ex_T_Commit {
|
||||
|
||||
String[] memberNames = {"Serial number", "Location", "Temperature (F)", "Pressure (inHg)"};
|
||||
long[] memberFileTypes = {HDF5Constants.H5T_STD_I32BE, HDF5Constants.H5T_C_S1,
|
||||
HDF5Constants.H5T_IEEE_F64BE, HDF5Constants.H5T_IEEE_F64BE};
|
||||
HDF5Constants.H5T_IEEE_F64BE, HDF5Constants.H5T_IEEE_F64BE};
|
||||
static int[] memberStorage = {INTEGERSIZE, MAXSTRINGSIZE, DOUBLESIZE, DOUBLESIZE};
|
||||
|
||||
// Data size is the storage size for the members not the object.
|
||||
|
||||
@@ -43,7 +43,7 @@ public class H5Ex_T_Compound {
|
||||
|
||||
static String[] memberNames = {"Serial number", "Location", "Temperature (F)", "Pressure (inHg)"};
|
||||
static long[] memberMemTypes = {HDF5Constants.H5T_NATIVE_INT, HDF5Constants.H5T_C_S1,
|
||||
HDF5Constants.H5T_NATIVE_DOUBLE, HDF5Constants.H5T_NATIVE_DOUBLE};
|
||||
HDF5Constants.H5T_NATIVE_DOUBLE, HDF5Constants.H5T_NATIVE_DOUBLE};
|
||||
static long[] memberFileTypes = {HDF5Constants.H5T_STD_I32BE, HDF5Constants.H5T_C_S1,
|
||||
HDF5Constants.H5T_IEEE_F64BE, HDF5Constants.H5T_IEEE_F64BE};
|
||||
static int[] memberStorage = {INTEGERSIZE, MAXSTRINGSIZE, DOUBLESIZE, DOUBLESIZE};
|
||||
|
||||
@@ -44,7 +44,7 @@ public class H5Ex_T_CompoundAttribute {
|
||||
|
||||
static String[] memberNames = {"Serial number", "Location", "Temperature (F)", "Pressure (inHg)"};
|
||||
static long[] memberMemTypes = {HDF5Constants.H5T_NATIVE_INT, HDF5Constants.H5T_C_S1,
|
||||
HDF5Constants.H5T_NATIVE_DOUBLE, HDF5Constants.H5T_NATIVE_DOUBLE};
|
||||
HDF5Constants.H5T_NATIVE_DOUBLE, HDF5Constants.H5T_NATIVE_DOUBLE};
|
||||
static long[] memberFileTypes = {HDF5Constants.H5T_STD_I32BE, HDF5Constants.H5T_C_S1,
|
||||
HDF5Constants.H5T_IEEE_F64BE, HDF5Constants.H5T_IEEE_F64BE};
|
||||
static int[] memberStorage = {INTEGERSIZE, MAXSTRINGSIZE, DOUBLESIZE, DOUBLESIZE};
|
||||
|
||||
@@ -91,8 +91,8 @@ DataType::DataType(const H5T_class_t type_class, size_t size)
|
||||
///\exception H5::ReferenceException
|
||||
//--------------------------------------------------------------------------
|
||||
DataType::DataType(const H5Location &loc, const void *ref, H5R_type_t ref_type, const PropList &plist)
|
||||
: H5Object(), id{H5Location::p_dereference(loc.getId(), ref, ref_type, plist,
|
||||
"constructor - by dereference")},
|
||||
: H5Object(),
|
||||
id{H5Location::p_dereference(loc.getId(), ref, ref_type, plist, "constructor - by dereference")},
|
||||
encoded_buf(NULL), buf_size(0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -30,17 +30,17 @@ using namespace H5;
|
||||
#define NDATASETS 50
|
||||
|
||||
/* Number of attributes for attribute iteration test */
|
||||
//#define NATTR 50
|
||||
// #define NATTR 50
|
||||
|
||||
/* Number of groups for second group iteration test */
|
||||
//#define ITER_NGROUPS 150
|
||||
// #define ITER_NGROUPS 150
|
||||
|
||||
/* General maximum length of names used */
|
||||
#define NAMELEN 80
|
||||
|
||||
/* 1-D dataset with fixed dimensions */
|
||||
//#define SPACE1_RANK 1
|
||||
//#define SPACE1_DIM1 4
|
||||
// #define SPACE1_RANK 1
|
||||
// #define SPACE1_DIM1 4
|
||||
|
||||
const H5std_string FILE_ITERATE("titerate.h5");
|
||||
const H5std_string GROUP1("Top Group");
|
||||
|
||||
+11
-11
@@ -567,17 +567,17 @@ h5init_flags_c(int_f *h5d_flags, size_t_f *h5d_size_flags, int_f *h5e_flags, hid
|
||||
h5fd_flags[20] = (int_f)SELECT_IOC_TOTAL;
|
||||
h5fd_flags[21] = (int_f)ioc_selection_options;
|
||||
#else
|
||||
h5fd_flags[11] = 0;
|
||||
h5fd_flags[12] = 0;
|
||||
h5fd_flags[13] = 0;
|
||||
h5fd_flags[14] = 0;
|
||||
h5fd_flags[15] = 0;
|
||||
h5fd_flags[16] = 0;
|
||||
h5fd_flags[17] = 0;
|
||||
h5fd_flags[18] = 0;
|
||||
h5fd_flags[19] = 0;
|
||||
h5fd_flags[20] = 0;
|
||||
h5fd_flags[21] = 0;
|
||||
h5fd_flags[11] = 0;
|
||||
h5fd_flags[12] = 0;
|
||||
h5fd_flags[13] = 0;
|
||||
h5fd_flags[14] = 0;
|
||||
h5fd_flags[15] = 0;
|
||||
h5fd_flags[16] = 0;
|
||||
h5fd_flags[17] = 0;
|
||||
h5fd_flags[18] = 0;
|
||||
h5fd_flags[19] = 0;
|
||||
h5fd_flags[20] = 0;
|
||||
h5fd_flags[21] = 0;
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
@@ -47,7 +47,7 @@ main(void)
|
||||
|
||||
Particle p = {"zero", 0, 0, 0.0F, 0.0};
|
||||
size_t dst_sizes[NFIELDS] = {sizeof(p.name), sizeof(p.lati), sizeof(p.longi), sizeof(p.pressure),
|
||||
sizeof(p.temperature)};
|
||||
sizeof(p.temperature)};
|
||||
|
||||
/* Define field information */
|
||||
const char *field_names[NFIELDS] = {"Name", "Latitude", "Longitude", "Pressure", "Temperature"};
|
||||
|
||||
@@ -56,7 +56,7 @@ main(void)
|
||||
size_t dst_offset[NFIELDS] = {HOFFSET(Particle, name), HOFFSET(Particle, lati), HOFFSET(Particle, longi),
|
||||
HOFFSET(Particle, pressure), HOFFSET(Particle, temperature)};
|
||||
size_t dst_sizes[NFIELDS] = {sizeof(dst_buf[0].name), sizeof(dst_buf[0].lati), sizeof(dst_buf[0].longi),
|
||||
sizeof(dst_buf[0].pressure), sizeof(dst_buf[0].temperature)};
|
||||
sizeof(dst_buf[0].pressure), sizeof(dst_buf[0].temperature)};
|
||||
size_t field_offset_pos[2] = {HOFFSET(Position, lati), HOFFSET(Position, longi)};
|
||||
const char *field_names[NFIELDS] = /* Define field information */
|
||||
{"Name", "Latitude", "Longitude", "Pressure", "Temperature"};
|
||||
|
||||
@@ -50,7 +50,7 @@ main(void)
|
||||
size_t dst_offset[NFIELDS] = {HOFFSET(Particle, name), HOFFSET(Particle, lati), HOFFSET(Particle, longi),
|
||||
HOFFSET(Particle, pressure), HOFFSET(Particle, temperature)};
|
||||
size_t dst_sizes[NFIELDS] = {sizeof(dst_buf[0].name), sizeof(dst_buf[0].lati), sizeof(dst_buf[0].longi),
|
||||
sizeof(dst_buf[0].pressure), sizeof(dst_buf[0].temperature)};
|
||||
sizeof(dst_buf[0].pressure), sizeof(dst_buf[0].temperature)};
|
||||
|
||||
size_t field_offset_pos[2] = {HOFFSET(Position, lati), HOFFSET(Position, longi)};
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ main(void)
|
||||
size_t dst_offset[NFIELDS] = {HOFFSET(Particle, name), HOFFSET(Particle, lati), HOFFSET(Particle, longi),
|
||||
HOFFSET(Particle, pressure), HOFFSET(Particle, temperature)};
|
||||
size_t dst_sizes[NFIELDS] = {sizeof(p_data[0].name), sizeof(p_data[0].lati), sizeof(p_data[0].longi),
|
||||
sizeof(p_data[0].pressure), sizeof(p_data[0].temperature)};
|
||||
sizeof(p_data[0].pressure), sizeof(p_data[0].temperature)};
|
||||
|
||||
/* Define an array of Particles to insert */
|
||||
Particle p_data_insert[NRECORDS_INS] = {{"new", 30, 30, 3.0F, 30.0}, {"new", 40, 40, 4.0F, 40.0}};
|
||||
|
||||
@@ -45,7 +45,7 @@ main(void)
|
||||
size_t dst_offset[NFIELDS] = {HOFFSET(Particle, name), HOFFSET(Particle, lati), HOFFSET(Particle, longi),
|
||||
HOFFSET(Particle, pressure), HOFFSET(Particle, temperature)};
|
||||
size_t dst_sizes[NFIELDS] = {sizeof(dst_buf[0].name), sizeof(dst_buf[0].lati), sizeof(dst_buf[0].longi),
|
||||
sizeof(dst_buf[0].pressure), sizeof(dst_buf[0].temperature)};
|
||||
sizeof(dst_buf[0].pressure), sizeof(dst_buf[0].temperature)};
|
||||
|
||||
/* Define an array of Particles */
|
||||
Particle p_data[NRECORDS] = {{"zero", 0, 0, 0.0F, 0.0}, {"one", 10, 10, 1.0F, 10.0},
|
||||
|
||||
@@ -50,7 +50,7 @@ main(void)
|
||||
size_t dst_offset[NFIELDS] = {HOFFSET(Particle, name), HOFFSET(Particle, lati), HOFFSET(Particle, longi),
|
||||
HOFFSET(Particle, pressure), HOFFSET(Particle, temperature)};
|
||||
size_t dst_sizes[NFIELDS] = {sizeof(dst_buf[0].name), sizeof(dst_buf[0].lati), sizeof(dst_buf[0].longi),
|
||||
sizeof(dst_buf[0].pressure), sizeof(dst_buf[0].temperature)};
|
||||
sizeof(dst_buf[0].pressure), sizeof(dst_buf[0].temperature)};
|
||||
|
||||
/* Define field information */
|
||||
const char *field_names[NFIELDS] = {"Name", "Latitude", "Longitude", "Pressure", "Temperature"};
|
||||
|
||||
@@ -136,9 +136,9 @@ create_long_dataset(hid_t fid, const char *name, const char *dsidx)
|
||||
int rankds = 1;
|
||||
hsize_t dims[4] = {DIM1_SIZE, DIM2_SIZE, DIM3_SIZE, DIM4_SIZE};
|
||||
long buf[DIM_DATA * 3 * 2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6,
|
||||
7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6,
|
||||
7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
|
||||
7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6,
|
||||
7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
|
||||
hsize_t s1_dim[1] = {DIM1_SIZE};
|
||||
hsize_t s2_dim[1] = {DIM2_SIZE};
|
||||
hsize_t s3_dim[1] = {DIM3_SIZE};
|
||||
|
||||
+10
-10
@@ -236,13 +236,13 @@ test_table(hid_t fid, int do_write)
|
||||
0.0,
|
||||
0,
|
||||
},
|
||||
{"one", 10, 1.0F, 10.0, 10},
|
||||
{"two", 20, 2.0F, 20.0, 20},
|
||||
{"three", 30, 3.0F, 30.0, 30},
|
||||
{"four", 40, 4.0F, 40.0, 40},
|
||||
{"five", 50, 5.0F, 50.0, 50},
|
||||
{"six", 60, 6.0F, 60.0, 60},
|
||||
{"seven", 70, 7.0F, 70.0, 70}};
|
||||
{"one", 10, 1.0F, 10.0, 10},
|
||||
{"two", 20, 2.0F, 20.0, 20},
|
||||
{"three", 30, 3.0F, 30.0, 30},
|
||||
{"four", 40, 4.0F, 40.0, 40},
|
||||
{"five", 50, 5.0F, 50.0, 50},
|
||||
{"six", 60, 6.0F, 60.0, 60},
|
||||
{"seven", 70, 7.0F, 70.0, 70}};
|
||||
/* buffers for the field "Pressure" and "New_field" */
|
||||
float pressure_in[NRECORDS] = {0.0F, 1.0F, 2.0F, 3.0F, 4.0F, 5.0F, 6.0F, 7.0F};
|
||||
float pressure_out[NRECORDS];
|
||||
@@ -302,8 +302,8 @@ test_table(hid_t fid, int do_write)
|
||||
HOFFSET(particle2_t, pressure), HOFFSET(particle2_t, temperature),
|
||||
HOFFSET(particle2_t, lati), HOFFSET(particle2_t, new_field)};
|
||||
size_t dst_sizes2[NFIELDS + 1] = {sizeof(rbuf2[0].name), sizeof(rbuf2[0].longi),
|
||||
sizeof(rbuf2[0].pressure), sizeof(rbuf2[0].temperature),
|
||||
sizeof(rbuf2[0].lati), sizeof(rbuf2[0].new_field)};
|
||||
sizeof(rbuf2[0].pressure), sizeof(rbuf2[0].temperature),
|
||||
sizeof(rbuf2[0].lati), sizeof(rbuf2[0].new_field)};
|
||||
/*-------------------------------------------------------------------------
|
||||
* initialize table parameters
|
||||
* size and the offsets of struct members in memory
|
||||
@@ -353,7 +353,7 @@ test_table(hid_t fid, int do_write)
|
||||
HOFFSET(particle_t, pressure), HOFFSET(particle_t, temperature),
|
||||
HOFFSET(particle_t, lati)};
|
||||
size_t field_size[NFIELDS] = {sizeof(rbuf[0].name), sizeof(rbuf[0].longi), sizeof(rbuf[0].pressure),
|
||||
sizeof(rbuf[0].temperature), sizeof(rbuf[0].lati)};
|
||||
sizeof(rbuf[0].temperature), sizeof(rbuf[0].lati)};
|
||||
|
||||
const char *field_names4[NFIELDS + 1] = {"F1", "F2", "F3", "F4", "F5", "F6"};
|
||||
hid_t field_type4[NFIELDS + 1];
|
||||
|
||||
@@ -28,5 +28,4 @@ import org.junit.runners.Suite;
|
||||
TestH5Obasic.class, TestH5Ocopy.class, TestH5Ocreate.class, TestH5PL.class,
|
||||
TestH5Z.class})
|
||||
|
||||
public class TestAll {
|
||||
}
|
||||
public class TestAll {}
|
||||
|
||||
@@ -939,8 +939,8 @@ public class TestH5D {
|
||||
public void testH5Dvlen_get_buf_size()
|
||||
{
|
||||
String[] str_data = {"Parting", "is such", "sweet", "sorrow.", "Testing", "one", "two", "three.",
|
||||
"Dog,", "man's", "best", "friend.", "Diamonds", "are", "a", "girls!",
|
||||
"S A", "T U R", "D A Y", "night", "That's", "all", "folks", "!!!"};
|
||||
"Dog,", "man's", "best", "friend.", "Diamonds", "are", "a", "girls!",
|
||||
"S A", "T U R", "D A Y", "night", "That's", "all", "folks", "!!!"};
|
||||
long vl_size = -1; /* Number of bytes used */
|
||||
long str_data_bytes = 0;
|
||||
for (int idx = 0; idx < str_data.length; idx++)
|
||||
|
||||
@@ -45,8 +45,8 @@ public class TestH5F {
|
||||
private static final int[] OBJ_COUNTS = {COUNT_OBJ_FILE, COUNT_OBJ_DATASET, COUNT_OBJ_GROUP,
|
||||
COUNT_OBJ_DATATYPE, COUNT_OBJ_ATTR, COUNT_OBJ_ALL};
|
||||
private static final int[] OBJ_TYPES = {HDF5Constants.H5F_OBJ_FILE, HDF5Constants.H5F_OBJ_DATASET,
|
||||
HDF5Constants.H5F_OBJ_GROUP, HDF5Constants.H5F_OBJ_DATATYPE,
|
||||
HDF5Constants.H5F_OBJ_ATTR, HDF5Constants.H5F_OBJ_ALL};
|
||||
HDF5Constants.H5F_OBJ_GROUP, HDF5Constants.H5F_OBJ_DATATYPE,
|
||||
HDF5Constants.H5F_OBJ_ATTR, HDF5Constants.H5F_OBJ_ALL};
|
||||
long H5fid = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
private final void _deleteFile(String filename)
|
||||
|
||||
@@ -37,7 +37,7 @@ public class TestH5G {
|
||||
private static final String H5_FILE = "testG.h5";
|
||||
private static final String H5_FILE2 = "testG2.h5";
|
||||
private static final String[] GROUPS = {"/G1", "/G1/G11", "/G1/G12", "/G1/G11/G111",
|
||||
"/G1/G11/G112", "/G1/G11/G113", "/G1/G11/G114"};
|
||||
"/G1/G11/G112", "/G1/G11/G113", "/G1/G11/G114"};
|
||||
private static final String[] GROUPS2 = {"/G1", "/G1/G14", "/G1/G12", "/G1/G13", "/G1/G11"};
|
||||
long H5fid = HDF5Constants.H5I_INVALID_HID;
|
||||
long H5fid2 = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
@@ -73,7 +73,7 @@ public class TestH5Plist {
|
||||
|
||||
private static final String PROP3_NAME = "Property 3";
|
||||
private static final char[] prop3_def = {'T', 'e', 'n', ' ', 'c',
|
||||
'h', 'a', 'r', 's', ' '}; // Property 3 default value
|
||||
'h', 'a', 'r', 's', ' '}; // Property 3 default value
|
||||
private static final int PROP3_SIZE = 10;
|
||||
|
||||
private static final String PROP4_NAME = "Property 4";
|
||||
|
||||
+8
-8
@@ -153,8 +153,8 @@ H5_DLL hid_t H5Acreate_async(const char *app_file, const char *app_func, unsigne
|
||||
const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id,
|
||||
hid_t aapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Acreate_async(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id,
|
||||
hid_t acpl_id, hid_t aapl_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Acreate_async(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id,
|
||||
hid_t acpl_id, hid_t aapl_id, hid_t es_id);
|
||||
#endif
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
@@ -769,7 +769,7 @@ H5_DLL hid_t H5Aopen(hid_t obj_id, const char *attr_name, hid_t aapl_id);
|
||||
H5_DLL hid_t H5Aopen_async(const char *app_file, const char *app_func, unsigned app_line, hid_t obj_id,
|
||||
const char *attr_name, hid_t aapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Aopen_async(hid_t obj_id, const char *attr_name, hid_t aapl_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Aopen_async(hid_t obj_id, const char *attr_name, hid_t aapl_id, hid_t es_id);
|
||||
#endif
|
||||
/*--------------------------------------------------------------------------*/
|
||||
/**
|
||||
@@ -824,9 +824,9 @@ H5_DLL hid_t H5Aopen_by_idx_async(const char *app_file, const char *app_func, un
|
||||
const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n,
|
||||
hid_t aapl_id, hid_t lapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Aopen_by_idx_async(hid_t loc_id, const char *obj_name, H5_index_t idx_type,
|
||||
H5_iter_order_t order, hsize_t n, hid_t aapl_id, hid_t lapl_id,
|
||||
hid_t es_id);
|
||||
H5_DLL hid_t H5Aopen_by_idx_async(hid_t loc_id, const char *obj_name, H5_index_t idx_type,
|
||||
H5_iter_order_t order, hsize_t n, hid_t aapl_id, hid_t lapl_id,
|
||||
hid_t es_id);
|
||||
#endif
|
||||
/*--------------------------------------------------------------------------*/
|
||||
/**
|
||||
@@ -879,8 +879,8 @@ H5_DLL hid_t H5Aopen_by_name_async(const char *app_file, const char *app_func, u
|
||||
hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id,
|
||||
hid_t lapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Aopen_by_name_async(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id,
|
||||
hid_t lapl_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Aopen_by_name_async(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id,
|
||||
hid_t lapl_id, hid_t es_id);
|
||||
#endif
|
||||
|
||||
/*-------------------------------------------------------------------------- */
|
||||
|
||||
+1
-1
@@ -675,7 +675,7 @@ void
|
||||
H5C_stats__reset(H5C_t *cache_ptr)
|
||||
#else /* NDEBUG */
|
||||
#if H5C_COLLECT_CACHE_STATS
|
||||
H5C_stats__reset(H5C_t *cache_ptr)
|
||||
H5C_stats__reset(H5C_t *cache_ptr)
|
||||
#else /* H5C_COLLECT_CACHE_STATS */
|
||||
H5C_stats__reset(H5C_t H5_ATTR_UNUSED *cache_ptr)
|
||||
#endif /* H5C_COLLECT_CACHE_STATS */
|
||||
|
||||
+1
-1
@@ -593,7 +593,7 @@
|
||||
***********************************************************************/
|
||||
|
||||
#define H5C__HASH_MASK ((size_t)(H5C__HASH_TABLE_LEN - 1) << 3)
|
||||
#define H5C__HASH_FCN(x) (int)((unsigned)((x)&H5C__HASH_MASK) >> 3)
|
||||
#define H5C__HASH_FCN(x) (int)((unsigned)((x) & H5C__HASH_MASK) >> 3)
|
||||
|
||||
#define H5C__POST_HT_SHIFT_TO_FRONT_SC_CMP(cache_ptr, entry_ptr, k) \
|
||||
((cache_ptr) == NULL || (cache_ptr)->index[k] != (entry_ptr) || (entry_ptr)->ht_prev != NULL)
|
||||
|
||||
+1
-1
@@ -245,7 +245,7 @@ typedef struct H5D_chunk_coll_fill_info_t {
|
||||
haddr_t addr; /* File address of the chunk */
|
||||
size_t chunk_size; /* Size of the chunk in the file */
|
||||
bool unfiltered_partial_chunk;
|
||||
} * chunk_info;
|
||||
} *chunk_info;
|
||||
} H5D_chunk_coll_fill_info_t;
|
||||
#endif /* H5_HAVE_PARALLEL */
|
||||
|
||||
|
||||
+1
-1
@@ -323,7 +323,7 @@ H5D__efl_read(const H5O_efl_t *efl, const H5D_t *dset, haddr_t addr, size_t size
|
||||
H5_CHECK_OVERFLOW(tempto_read, hsize_t, size_t);
|
||||
to_read = (size_t)tempto_read;
|
||||
#else /* NDEBUG */
|
||||
to_read = MIN((size_t)(efl->slot[u].size - skip), (hsize_t)size);
|
||||
to_read = MIN((size_t)(efl->slot[u].size - skip), (hsize_t)size);
|
||||
#endif /* NDEBUG */
|
||||
|
||||
/* Inner loop - read to_read bytes from a single external file */
|
||||
|
||||
+4
-4
@@ -332,8 +332,8 @@ H5_DLL hid_t H5Dcreate_async(const char *app_file, const char *app_func, unsigne
|
||||
const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id,
|
||||
hid_t dapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Dcreate_async(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id,
|
||||
hid_t dcpl_id, hid_t dapl_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Dcreate_async(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id,
|
||||
hid_t dcpl_id, hid_t dapl_id, hid_t es_id);
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -414,7 +414,7 @@ H5_DLL hid_t H5Dopen2(hid_t loc_id, const char *name, hid_t dapl_id);
|
||||
H5_DLL hid_t H5Dopen_async(const char *app_file, const char *app_func, unsigned app_line, hid_t loc_id,
|
||||
const char *name, hid_t dapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Dopen_async(hid_t loc_id, const char *name, hid_t dapl_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Dopen_async(hid_t loc_id, const char *name, hid_t dapl_id, hid_t es_id);
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -454,7 +454,7 @@ H5_DLL hid_t H5Dget_space(hid_t dset_id);
|
||||
H5_DLL hid_t H5Dget_space_async(const char *app_file, const char *app_func, unsigned app_line, hid_t dset_id,
|
||||
hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Dget_space_async(hid_t dset_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Dget_space_async(hid_t dset_id, hid_t es_id);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ static hid_t H5FD_HDFS_g = 0;
|
||||
unsigned long long donotshadowresult = 1; \
|
||||
unsigned donotshadowindex = 0; \
|
||||
for (donotshadowindex = 0; \
|
||||
donotshadowindex < (((bin_i)*HDFS_STATS_INTERVAL) + HDFS_STATS_START_POWER); \
|
||||
donotshadowindex < (((bin_i) * HDFS_STATS_INTERVAL) + HDFS_STATS_START_POWER); \
|
||||
donotshadowindex++) { \
|
||||
donotshadowresult *= HDFS_STATS_BASE; \
|
||||
} \
|
||||
|
||||
+1
-1
@@ -1225,7 +1225,7 @@ H5FD__log_read(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, had
|
||||
if (bytes_read > 0)
|
||||
offset += bytes_read;
|
||||
#else
|
||||
bytes_read = HDread(file->fd, buf, bytes_in);
|
||||
bytes_read = HDread(file->fd, buf, bytes_in);
|
||||
#endif /* H5_HAVE_PREADWRITE */
|
||||
} while (-1 == bytes_read && EINTR == errno);
|
||||
|
||||
|
||||
+4
-4
@@ -65,10 +65,10 @@ typedef struct H5FD_mirror_t {
|
||||
|
||||
#ifndef BSWAP_64
|
||||
#define BSWAP_64(X) \
|
||||
(uint64_t)((((X)&0x00000000000000FF) << 56) | (((X)&0x000000000000FF00) << 40) | \
|
||||
(((X)&0x0000000000FF0000) << 24) | (((X)&0x00000000FF000000) << 8) | \
|
||||
(((X)&0x000000FF00000000) >> 8) | (((X)&0x0000FF0000000000) >> 24) | \
|
||||
(((X)&0x00FF000000000000) >> 40) | (((X)&0xFF00000000000000) >> 56))
|
||||
(uint64_t)((((X) & 0x00000000000000FF) << 56) | (((X) & 0x000000000000FF00) << 40) | \
|
||||
(((X) & 0x0000000000FF0000) << 24) | (((X) & 0x00000000FF000000) << 8) | \
|
||||
(((X) & 0x000000FF00000000) >> 8) | (((X) & 0x0000FF0000000000) >> 24) | \
|
||||
(((X) & 0x00FF000000000000) >> 40) | (((X) & 0xFF00000000000000) >> 56))
|
||||
#endif /* BSWAP_64 */
|
||||
|
||||
/* Debugging flabs for verbose tracing -- nonzero to enable */
|
||||
|
||||
+1
-1
@@ -692,7 +692,7 @@ H5FD__sec2_read(H5FD_t *_file, H5FD_mem_t H5_ATTR_UNUSED type, hid_t H5_ATTR_UNU
|
||||
if (bytes_read > 0)
|
||||
offset += bytes_read;
|
||||
#else
|
||||
bytes_read = HDread(file->fd, buf, bytes_in);
|
||||
bytes_read = HDread(file->fd, buf, bytes_in);
|
||||
#endif /* H5_HAVE_PREADWRITE */
|
||||
} while (-1 == bytes_read && EINTR == errno);
|
||||
|
||||
|
||||
+1
-1
@@ -113,7 +113,7 @@ typedef struct H5FD_stdio_t {
|
||||
DWORD nFileIndexHigh;
|
||||
DWORD dwVolumeSerialNumber;
|
||||
|
||||
HANDLE hFile; /* Native windows file handle */
|
||||
HANDLE hFile; /* Native windows file handle */
|
||||
#endif /* H5_HAVE_WIN32_API */
|
||||
} H5FD_stdio_t;
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ hg_thread_cond_timedwait(hg_thread_cond_t *cond, hg_thread_mutex_t *mutex, unsig
|
||||
ld = ldiv(now.tv_usec + timeout * 1000L, 1000000L);
|
||||
abs_timeout.tv_nsec = ld.rem * 1000L;
|
||||
#endif
|
||||
abs_timeout.tv_sec = now.tv_sec + ld.quot;
|
||||
abs_timeout.tv_sec = now.tv_sec + ld.quot;
|
||||
|
||||
if (pthread_cond_timedwait(cond, mutex, &abs_timeout))
|
||||
return HG_UTIL_FAIL;
|
||||
|
||||
+3
-3
@@ -127,8 +127,8 @@ H5_DLL hid_t H5Gcreate2(hid_t loc_id, const char *name, hid_t lcpl_id, hid_t gcp
|
||||
H5_DLL hid_t H5Gcreate_async(const char *app_file, const char *app_func, unsigned app_line, hid_t loc_id,
|
||||
const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Gcreate_async(hid_t loc_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id,
|
||||
hid_t es_id);
|
||||
H5_DLL hid_t H5Gcreate_async(hid_t loc_id, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id,
|
||||
hid_t es_id);
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -222,7 +222,7 @@ H5_DLL hid_t H5Gopen2(hid_t loc_id, const char *name, hid_t gapl_id);
|
||||
H5_DLL hid_t H5Gopen_async(const char *app_file, const char *app_func, unsigned app_line, hid_t loc_id,
|
||||
const char *name, hid_t gapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Gopen_async(hid_t loc_id, const char *name, hid_t gapl_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Gopen_async(hid_t loc_id, const char *name, hid_t gapl_id, hid_t es_id);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@
|
||||
/****************/
|
||||
|
||||
/* Combine a Type number and an ID index into an ID */
|
||||
#define H5I_MAKE(g, i) ((((hid_t)(g)&TYPE_MASK) << ID_BITS) | ((hid_t)(i)&ID_MASK))
|
||||
#define H5I_MAKE(g, i) ((((hid_t)(g) & TYPE_MASK) << ID_BITS) | ((hid_t)(i) & ID_MASK))
|
||||
|
||||
/******************/
|
||||
/* Local Typedefs */
|
||||
|
||||
+3
-3
@@ -238,8 +238,8 @@ H5_DLL hid_t H5Mcreate_async(const char *app_file, const char *app_func, unsigne
|
||||
const char *name, hid_t key_type_id, hid_t val_type_id, hid_t lcpl_id,
|
||||
hid_t mcpl_id, hid_t mapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Mcreate_async(hid_t loc_id, const char *name, hid_t key_type_id, hid_t val_type_id,
|
||||
hid_t lcpl_id, hid_t mcpl_id, hid_t mapl_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Mcreate_async(hid_t loc_id, const char *name, hid_t key_type_id, hid_t val_type_id,
|
||||
hid_t lcpl_id, hid_t mcpl_id, hid_t mapl_id, hid_t es_id);
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -300,7 +300,7 @@ H5_DLL hid_t H5Mopen(hid_t loc_id, const char *name, hid_t mapl_id);
|
||||
H5_DLL hid_t H5Mopen_async(const char *app_file, const char *app_func, unsigned app_line, hid_t loc_id,
|
||||
const char *name, hid_t mapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Mopen_async(hid_t loc_id, const char *name, hid_t mapl_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Mopen_async(hid_t loc_id, const char *name, hid_t mapl_id, hid_t es_id);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -67,13 +67,13 @@ static herr_t H5O__dtype_debug(H5F_t *f, const void *_mesg, FILE *stream, int in
|
||||
/* If the version is too low, give an error. No error if nochange is set
|
||||
* because in that case we are either debugging or deleting the object header */
|
||||
#define H5O_DTYPE_CHECK_VERSION(DT, VERS, MIN_VERS, IOF, CLASS, ERR) \
|
||||
if (((VERS) < (MIN_VERS)) && !(*(IOF)&H5O_DECODEIO_NOCHANGE)) \
|
||||
if (((VERS) < (MIN_VERS)) && !(*(IOF) & H5O_DECODEIO_NOCHANGE)) \
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_VERSION, ERR, "incorrect " CLASS " datatype version");
|
||||
#else /* H5_STRICT_FORMAT_CHECKS */
|
||||
/* If the version is too low and we are allowed to change the message, upgrade
|
||||
* it and mark the object header as dirty */
|
||||
#define H5O_DTYPE_CHECK_VERSION(DT, VERS, MIN_VERS, IOF, CLASS, ERR) \
|
||||
if (((VERS) < (MIN_VERS)) && !(*(IOF)&H5O_DECODEIO_NOCHANGE)) { \
|
||||
if (((VERS) < (MIN_VERS)) && !(*(IOF) & H5O_DECODEIO_NOCHANGE)) { \
|
||||
(VERS) = (MIN_VERS); \
|
||||
if (H5T__upgrade_version((DT), (VERS)) < 0) \
|
||||
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTSET, FAIL, "can't upgrade " CLASS " encoding version"); \
|
||||
|
||||
+3
-3
@@ -276,7 +276,7 @@ H5_DLL hid_t H5Oopen(hid_t loc_id, const char *name, hid_t lapl_id);
|
||||
H5_DLL hid_t H5Oopen_async(const char *app_file, const char *app_func, unsigned app_line, hid_t loc_id,
|
||||
const char *name, hid_t lapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Oopen_async(hid_t loc_id, const char *name, hid_t lapl_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Oopen_async(hid_t loc_id, const char *name, hid_t lapl_id, hid_t es_id);
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -365,8 +365,8 @@ H5_DLL hid_t H5Oopen_by_idx_async(const char *app_file, const char *app_func, un
|
||||
const char *group_name, H5_index_t idx_type, H5_iter_order_t order,
|
||||
hsize_t n, hid_t lapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Oopen_by_idx_async(hid_t loc_id, const char *group_name, H5_index_t idx_type,
|
||||
H5_iter_order_t order, hsize_t n, hid_t lapl_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Oopen_by_idx_async(hid_t loc_id, const char *group_name, H5_index_t idx_type,
|
||||
H5_iter_order_t order, hsize_t n, hid_t lapl_id, hid_t es_id);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -266,7 +266,7 @@ static const H5S_sel_iter_class_t H5S_sel_iter_hyper[1] = {{
|
||||
static const hsize_t H5S_hyper_zeros_g[H5S_MAX_RANK] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
||||
static const hsize_t H5S_hyper_ones_g[H5S_MAX_RANK] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
|
||||
|
||||
/* Declare a free list to manage the H5S_hyper_sel_t struct */
|
||||
H5FL_DEFINE_STATIC(H5S_hyper_sel_t);
|
||||
|
||||
+3
-3
@@ -70,7 +70,7 @@ static herr_t H5TS__mutex_unlock(H5TS_mutex_t *mutex, unsigned int *lock_count);
|
||||
#ifdef H5_HAVE_WIN_THREADS
|
||||
H5TS_once_t H5TS_first_init_g;
|
||||
#else
|
||||
H5TS_once_t H5TS_first_init_g = PTHREAD_ONCE_INIT;
|
||||
H5TS_once_t H5TS_first_init_g = PTHREAD_ONCE_INIT;
|
||||
#endif
|
||||
|
||||
/* Thread-local keys, used by other interfaces */
|
||||
@@ -78,7 +78,7 @@ H5TS_once_t H5TS_first_init_g = PTHREAD_ONCE_INIT;
|
||||
#ifdef H5_HAVE_WIN_THREADS
|
||||
H5TS_key_t H5TS_errstk_key_g = TLS_OUT_OF_INDEXES;
|
||||
#else
|
||||
H5TS_key_t H5TS_errstk_key_g;
|
||||
H5TS_key_t H5TS_errstk_key_g;
|
||||
#endif
|
||||
|
||||
#ifdef H5_HAVE_CODESTACK
|
||||
@@ -94,7 +94,7 @@ H5TS_key_t H5TS_funcstk_key_g;
|
||||
#ifdef H5_HAVE_WIN_THREADS
|
||||
H5TS_key_t H5TS_apictx_key_g = TLS_OUT_OF_INDEXES;
|
||||
#else
|
||||
H5TS_key_t H5TS_apictx_key_g;
|
||||
H5TS_key_t H5TS_apictx_key_g;
|
||||
#endif
|
||||
|
||||
/*******************/
|
||||
|
||||
+1
-1
@@ -1259,7 +1259,7 @@ H5_DLL hid_t H5Topen2(hid_t loc_id, const char *name, hid_t tapl_id);
|
||||
H5_DLL hid_t H5Topen_async(const char *app_file, const char *app_func, unsigned app_line, hid_t loc_id,
|
||||
const char *name, hid_t tapl_id, hid_t es_id);
|
||||
#else
|
||||
H5_DLL hid_t H5Topen_async(hid_t loc_id, const char *name, hid_t tapl_id, hid_t es_id);
|
||||
H5_DLL hid_t H5Topen_async(hid_t loc_id, const char *name, hid_t tapl_id, hid_t es_id);
|
||||
#endif
|
||||
/**
|
||||
* \ingroup H5T
|
||||
|
||||
+16
-16
@@ -33,7 +33,7 @@
|
||||
|
||||
#define INT16ENCODE(p, i) \
|
||||
do { \
|
||||
*(p) = (uint8_t)((unsigned)(i)&0xff); \
|
||||
*(p) = (uint8_t)((unsigned)(i) & 0xff); \
|
||||
(p)++; \
|
||||
*(p) = (uint8_t)(((unsigned)(i) >> 8) & 0xff); \
|
||||
(p)++; \
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
#define UINT16ENCODE(p, i) \
|
||||
do { \
|
||||
*(p) = (uint8_t)((unsigned)(i)&0xff); \
|
||||
*(p) = (uint8_t)((unsigned)(i) & 0xff); \
|
||||
(p)++; \
|
||||
*(p) = (uint8_t)(((unsigned)(i) >> 8) & 0xff); \
|
||||
(p)++; \
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
#define INT32ENCODE(p, i) \
|
||||
do { \
|
||||
*(p) = (uint8_t)((uint32_t)(i)&0xff); \
|
||||
*(p) = (uint8_t)((uint32_t)(i) & 0xff); \
|
||||
(p)++; \
|
||||
*(p) = (uint8_t)(((uint32_t)(i) >> 8) & 0xff); \
|
||||
(p)++; \
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
#define UINT32ENCODE(p, i) \
|
||||
do { \
|
||||
*(p) = (uint8_t)((i)&0xff); \
|
||||
*(p) = (uint8_t)((i) & 0xff); \
|
||||
(p)++; \
|
||||
*(p) = (uint8_t)(((i) >> 8) & 0xff); \
|
||||
(p)++; \
|
||||
@@ -149,41 +149,41 @@
|
||||
|
||||
#define INT16DECODE(p, i) \
|
||||
do { \
|
||||
(i) = (int16_t)((*(p)&0xff)); \
|
||||
(i) = (int16_t)((*(p) & 0xff)); \
|
||||
(p)++; \
|
||||
(i) |= (int16_t)(((*(p)&0xff) << 8) | ((*(p)&0x80) ? ~0xffff : 0x0)); \
|
||||
(i) |= (int16_t)(((*(p) & 0xff) << 8) | ((*(p) & 0x80) ? ~0xffff : 0x0)); \
|
||||
(p)++; \
|
||||
} while (0)
|
||||
|
||||
#define UINT16DECODE(p, i) \
|
||||
do { \
|
||||
(i) = (uint16_t)(*(p)&0xff); \
|
||||
(i) = (uint16_t)(*(p) & 0xff); \
|
||||
(p)++; \
|
||||
(i) |= (uint16_t)((*(p)&0xff) << 8); \
|
||||
(i) |= (uint16_t)((*(p) & 0xff) << 8); \
|
||||
(p)++; \
|
||||
} while (0)
|
||||
|
||||
#define INT32DECODE(p, i) \
|
||||
do { \
|
||||
(i) = ((int32_t)(*(p)&0xff)); \
|
||||
(i) = ((int32_t)(*(p) & 0xff)); \
|
||||
(p)++; \
|
||||
(i) |= ((int32_t)(*(p)&0xff) << 8); \
|
||||
(i) |= ((int32_t)(*(p) & 0xff) << 8); \
|
||||
(p)++; \
|
||||
(i) |= ((int32_t)(*(p)&0xff) << 16); \
|
||||
(i) |= ((int32_t)(*(p) & 0xff) << 16); \
|
||||
(p)++; \
|
||||
(i) |= ((int32_t)(((*(p) & (unsigned)0xff) << 24) | ((*(p)&0x80) ? ~0xffffffffULL : 0x0ULL))); \
|
||||
(i) |= ((int32_t)(((*(p) & (unsigned)0xff) << 24) | ((*(p) & 0x80) ? ~0xffffffffULL : 0x0ULL))); \
|
||||
(p)++; \
|
||||
} while (0)
|
||||
|
||||
#define UINT32DECODE(p, i) \
|
||||
do { \
|
||||
(i) = (uint32_t)(*(p)&0xff); \
|
||||
(i) = (uint32_t)(*(p) & 0xff); \
|
||||
(p)++; \
|
||||
(i) |= ((uint32_t)(*(p)&0xff) << 8); \
|
||||
(i) |= ((uint32_t)(*(p) & 0xff) << 8); \
|
||||
(p)++; \
|
||||
(i) |= ((uint32_t)(*(p)&0xff) << 16); \
|
||||
(i) |= ((uint32_t)(*(p) & 0xff) << 16); \
|
||||
(p)++; \
|
||||
(i) |= ((uint32_t)(*(p)&0xff) << 24); \
|
||||
(i) |= ((uint32_t)(*(p) & 0xff) << 24); \
|
||||
(p)++; \
|
||||
} while (0)
|
||||
|
||||
|
||||
+1
-1
@@ -882,7 +882,7 @@ H5_DLL H5_ATTR_CONST int Nflock(int fd, int operation);
|
||||
#ifdef H5_HAVE_VASPRINTF
|
||||
#define HDvasprintf(RET, FMT, A) vasprintf(RET, FMT, A)
|
||||
#else
|
||||
H5_DLL int HDvasprintf(char **bufp, const char *fmt, va_list _ap);
|
||||
H5_DLL int HDvasprintf(char **bufp, const char *fmt, va_list _ap);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
+1
-1
@@ -200,7 +200,7 @@ H5_now_usec(void)
|
||||
#else /* H5_HAVE_GETTIMEOFDAY */
|
||||
/* Cast all values in this expression to uint64_t to ensure that all intermediate calculations
|
||||
* are done in 64 bit, to prevent overflow */
|
||||
now = ((uint64_t)time(NULL) * ((uint64_t)1000 * (uint64_t)1000));
|
||||
now = ((uint64_t)time(NULL) * ((uint64_t)1000 * (uint64_t)1000));
|
||||
#endif /* H5_HAVE_GETTIMEOFDAY */
|
||||
|
||||
return (now);
|
||||
|
||||
+31
-21
@@ -700,28 +700,38 @@ typedef unsigned char uint8_t;
|
||||
switch (_hj_k) { \
|
||||
case 11: \
|
||||
hashv += ((unsigned)_hj_key[10] << 24); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 10: \
|
||||
hashv += ((unsigned)_hj_key[9] << 16); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 9: \
|
||||
hashv += ((unsigned)_hj_key[8] << 8); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 8: \
|
||||
_hj_j += ((unsigned)_hj_key[7] << 24); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 7: \
|
||||
_hj_j += ((unsigned)_hj_key[6] << 16); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 6: \
|
||||
_hj_j += ((unsigned)_hj_key[5] << 8); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 5: \
|
||||
_hj_j += _hj_key[4]; \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 4: \
|
||||
_hj_i += ((unsigned)_hj_key[3] << 24); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 3: \
|
||||
_hj_i += ((unsigned)_hj_key[2] << 16); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 2: \
|
||||
_hj_i += ((unsigned)_hj_key[1] << 8); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 1: \
|
||||
_hj_i += _hj_key[0]; \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 10 : hashv += ((unsigned)_hj_key[9] << 16); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 9 : hashv += ((unsigned)_hj_key[8] << 8); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 8 : _hj_j += ((unsigned)_hj_key[7] << 24); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 7 : _hj_j += ((unsigned)_hj_key[6] << 16); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 6 : _hj_j += ((unsigned)_hj_key[5] << 8); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 5 : _hj_j += _hj_key[4]; \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 4 : _hj_i += ((unsigned)_hj_key[3] << 24); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 3 : _hj_i += ((unsigned)_hj_key[2] << 16); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 2 : _hj_i += ((unsigned)_hj_key[1] << 8); \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
case 1 : _hj_i += _hj_key[0]; \
|
||||
H5_ATTR_FALLTHROUGH /* FALLTHROUGH */ \
|
||||
default:; \
|
||||
default :; \
|
||||
} \
|
||||
HASH_JEN_MIX(_hj_i, _hj_j, hashv); \
|
||||
} while (0)
|
||||
|
||||
@@ -1196,9 +1196,9 @@ test_set_extent(void)
|
||||
hid_t file_id = H5I_INVALID_HID;
|
||||
hid_t dset_id = H5I_INVALID_HID;
|
||||
hid_t fspace_id[6] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID};
|
||||
H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID};
|
||||
hid_t fspace_out[6] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID};
|
||||
H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID};
|
||||
hid_t mspace_id = H5I_INVALID_HID;
|
||||
hid_t dcpl_id = H5I_INVALID_HID;
|
||||
hid_t es_id = H5I_INVALID_HID;
|
||||
|
||||
+31
-31
@@ -3148,7 +3148,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 1,
|
||||
{/* entry_num = */ 1,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 75,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3156,7 +3156,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ true,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 2,
|
||||
{/* entry_num = */ 2,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 25,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3164,7 +3164,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ true,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 3,
|
||||
{/* entry_num = */ 3,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 50,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3172,7 +3172,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ true,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 4,
|
||||
{/* entry_num = */ 4,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 10,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3180,7 +3180,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 5,
|
||||
{/* entry_num = */ 5,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 20,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3188,7 +3188,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ true,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 6,
|
||||
{/* entry_num = */ 6,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 30,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3196,7 +3196,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ true,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 7,
|
||||
{/* entry_num = */ 7,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 40,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3220,7 +3220,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 1,
|
||||
{/* entry_num = */ 1,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 75,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3228,7 +3228,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ true,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 2,
|
||||
{/* entry_num = */ 2,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 25,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3236,7 +3236,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ true,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 3,
|
||||
{/* entry_num = */ 3,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 50,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3244,7 +3244,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ true,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 4,
|
||||
{/* entry_num = */ 4,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 10,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3252,7 +3252,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 5,
|
||||
{/* entry_num = */ 5,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 20,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3260,7 +3260,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ true,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 6,
|
||||
{/* entry_num = */ 6,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 30,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3268,7 +3268,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ true,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 7,
|
||||
{/* entry_num = */ 7,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 40,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3292,7 +3292,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 1,
|
||||
{/* entry_num = */ 1,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 75,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3300,7 +3300,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 2,
|
||||
{/* entry_num = */ 2,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 25,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3308,7 +3308,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 3,
|
||||
{/* entry_num = */ 3,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 50,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3316,7 +3316,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 4,
|
||||
{/* entry_num = */ 4,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 10,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3324,7 +3324,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 5,
|
||||
{/* entry_num = */ 5,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 20,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3332,7 +3332,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 6,
|
||||
{/* entry_num = */ 6,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 30,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3340,7 +3340,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ false},
|
||||
{/* entry_num = */ 7,
|
||||
{/* entry_num = */ 7,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 40,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3364,7 +3364,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 1,
|
||||
{/* entry_num = */ 1,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 75,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3372,7 +3372,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 2,
|
||||
{/* entry_num = */ 2,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 25,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3380,7 +3380,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 3,
|
||||
{/* entry_num = */ 3,
|
||||
/* entry_type = */ PICO_ENTRY_TYPE,
|
||||
/* entry_index = */ 50,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3388,7 +3388,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 4,
|
||||
{/* entry_num = */ 4,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 10,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3396,7 +3396,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 5,
|
||||
{/* entry_num = */ 5,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 20,
|
||||
/* insert_flag = */ false,
|
||||
@@ -3404,7 +3404,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 6,
|
||||
{/* entry_num = */ 6,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 30,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3412,7 +3412,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ false,
|
||||
/* expected_destroyed = */ true},
|
||||
{/* entry_num = */ 7,
|
||||
{/* entry_num = */ 7,
|
||||
/* entry_type = */ MONSTER_ENTRY_TYPE,
|
||||
/* entry_index = */ 40,
|
||||
/* insert_flag = */ true,
|
||||
@@ -3573,7 +3573,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* num_pins = */ 5,
|
||||
/* pin_type[MAX_PINS] = */
|
||||
{PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, MONSTER_ENTRY_TYPE, -1, -1,
|
||||
-1},
|
||||
-1},
|
||||
/* pin_idx[MAX_PINS] = */ {100, 75, 25, 50, 10, -1, -1, -1},
|
||||
/* expected_deserialized = */ true,
|
||||
/* expected_serialized = */ true,
|
||||
@@ -3586,7 +3586,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* num_pins = */ 6,
|
||||
/* pin_type[MAX_PINS] = */
|
||||
{PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, MONSTER_ENTRY_TYPE,
|
||||
MONSTER_ENTRY_TYPE, -1, -1},
|
||||
MONSTER_ENTRY_TYPE, -1, -1},
|
||||
/* pin_idx[MAX_PINS] = */ {100, 75, 25, 50, 10, 20, -1, -1},
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ true,
|
||||
@@ -3599,7 +3599,7 @@ check_flush_cache__multi_entry(H5F_t *file_ptr)
|
||||
/* num_pins = */ 7,
|
||||
/* pin_type[MAX_PINS] = */
|
||||
{PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, MONSTER_ENTRY_TYPE,
|
||||
MONSTER_ENTRY_TYPE, MONSTER_ENTRY_TYPE, -1},
|
||||
MONSTER_ENTRY_TYPE, MONSTER_ENTRY_TYPE, -1},
|
||||
/* pin_idx[MAX_PINS] = */ {100, 75, 25, 50, 10, 20, 30, -1},
|
||||
/* expected_deserialized = */ false,
|
||||
/* expected_serialized = */ true,
|
||||
|
||||
+6
-6
@@ -3319,7 +3319,7 @@ test_nbit_float(hid_t file)
|
||||
* dataset datatype (no precision loss during datatype conversion)
|
||||
*/
|
||||
float orig_data[2][5] = {{188384.0F, 19.103516F, -1.0831790e9F, -84.242188F, 5.2045898F},
|
||||
{-49140.0F, 2350.25F, -3.2110596e-1F, 6.4998865e-5F, -0.0F}};
|
||||
{-49140.0F, 2350.25F, -3.2110596e-1F, 6.4998865e-5F, -0.0F}};
|
||||
float new_data[2][5];
|
||||
size_t precision, offset;
|
||||
size_t i, j;
|
||||
@@ -3707,7 +3707,7 @@ test_nbit_compound(hid_t file)
|
||||
const hsize_t size[2] = {2, 5};
|
||||
const hsize_t chunk_size[2] = {2, 5};
|
||||
const float float_val[2][5] = {{188384.0F, 19.103516F, -1.0831790e9F, -84.242188F, 5.2045898F},
|
||||
{-49140.0F, 2350.25F, -3.2110596e-1F, 6.4998865e-5F, -0.0F}};
|
||||
{-49140.0F, 2350.25F, -3.2110596e-1F, 6.4998865e-5F, -0.0F}};
|
||||
atomic orig_data[2][5];
|
||||
atomic new_data[2][5];
|
||||
unsigned int i_mask, s_mask, c_mask;
|
||||
@@ -3934,7 +3934,7 @@ test_nbit_compound_2(hid_t file)
|
||||
const hsize_t size[2] = {2, 5};
|
||||
const hsize_t chunk_size[2] = {2, 5};
|
||||
const float float_val[2][5] = {{188384.0F, 19.103516F, -1.0831790e9F, -84.242188F, 5.2045898F},
|
||||
{-49140.0F, 2350.25F, -3.2110596e-1F, 6.4998865e-5F, -0.0F}};
|
||||
{-49140.0F, 2350.25F, -3.2110596e-1F, 6.4998865e-5F, -0.0F}};
|
||||
complex orig_data[2][5];
|
||||
complex new_data[2][5];
|
||||
unsigned int i_mask, s_mask, c_mask, b_mask;
|
||||
@@ -12726,9 +12726,9 @@ test_bt2_hdr_fd(const char *driver_name, hid_t fapl)
|
||||
const hsize_t maxshape[2] = {H5S_UNLIMITED, H5S_UNLIMITED};
|
||||
const hsize_t chunk[2] = {8, 8};
|
||||
const int buffer[8][8] = {{0, 1, 2, 3, 4, 5, 6, 7}, {8, 9, 10, 11, 12, 13, 14, 15},
|
||||
{16, 17, 18, 19, 20, 21, 22, 23}, {24, 25, 26, 27, 28, 29, 30, 31},
|
||||
{32, 33, 34, 35, 36, 37, 38, 39}, {40, 41, 42, 43, 44, 45, 46, 47},
|
||||
{48, 49, 50, 51, 52, 53, 54, 55}, {56, 57, 58, 59, 60, 61, 62, 63}};
|
||||
{16, 17, 18, 19, 20, 21, 22, 23}, {24, 25, 26, 27, 28, 29, 30, 31},
|
||||
{32, 33, 34, 35, 36, 37, 38, 39}, {40, 41, 42, 43, 44, 45, 46, 47},
|
||||
{48, 49, 50, 51, 52, 53, 54, 55}, {56, 57, 58, 59, 60, 61, 62, 63}};
|
||||
H5O_info2_t info;
|
||||
|
||||
TESTING("Version 2 B-tree chunk index header flush dependencies handled correctly");
|
||||
|
||||
+2
-2
@@ -121,7 +121,7 @@ const int transformData[ROWS][COLS] = {{36, 31, 25, 19, 13, 7, 1, 5, 11, 16, 22,
|
||||
do { \
|
||||
struct { \
|
||||
TYPE arr[ROWS][COLS]; \
|
||||
} *array = NULL; \
|
||||
} *array = NULL; \
|
||||
const char *f_to_c = "(5/9.0)*(x-32)"; \
|
||||
/* utrans is a transform for char types: numbers are restricted from -128 to 127, fits into char */ \
|
||||
const char *utrans = "(x/4+25)*3"; \
|
||||
@@ -217,7 +217,7 @@ const int transformData[ROWS][COLS] = {{36, 31, 25, 19, 13, 7, 1, 5, 11, 16, 22,
|
||||
do { \
|
||||
struct { \
|
||||
TYPE arr[ROWS][COLS]; \
|
||||
} *array = NULL; \
|
||||
} *array = NULL; \
|
||||
const char *f_to_c = "(5/9.0)*(x-32)"; \
|
||||
/* utrans is a transform for char types: numbers are restricted from -128 to 127, fits into char */ \
|
||||
const char *utrans = "(x/4+25)*3"; \
|
||||
|
||||
+10
-10
@@ -774,10 +774,10 @@ test_compound_2(void)
|
||||
{
|
||||
struct st {
|
||||
int a, b, c[4], d, e;
|
||||
} * s_ptr;
|
||||
} *s_ptr;
|
||||
struct dt {
|
||||
int e, d, c[4], b, a;
|
||||
} * d_ptr;
|
||||
} *d_ptr;
|
||||
|
||||
const size_t nelmts = NTESTELEM;
|
||||
const hsize_t four = 4;
|
||||
@@ -899,10 +899,10 @@ test_compound_3(void)
|
||||
{
|
||||
struct st {
|
||||
int a, b, c[4], d, e;
|
||||
} * s_ptr;
|
||||
} *s_ptr;
|
||||
struct dt {
|
||||
int a, c[4], e;
|
||||
} * d_ptr;
|
||||
} *d_ptr;
|
||||
|
||||
const size_t nelmts = NTESTELEM;
|
||||
const hsize_t four = 4;
|
||||
@@ -1021,13 +1021,13 @@ test_compound_4(void)
|
||||
|
||||
struct st {
|
||||
int a, b, c[4], d, e;
|
||||
} * s_ptr;
|
||||
} *s_ptr;
|
||||
struct dt {
|
||||
short b;
|
||||
int a, c[4];
|
||||
short d;
|
||||
int e;
|
||||
} * d_ptr;
|
||||
} *d_ptr;
|
||||
|
||||
const size_t nelmts = NTESTELEM;
|
||||
const hsize_t four = 4;
|
||||
@@ -1249,11 +1249,11 @@ test_compound_6(void)
|
||||
struct st {
|
||||
short b;
|
||||
short d;
|
||||
} * s_ptr;
|
||||
} *s_ptr;
|
||||
struct dt {
|
||||
long b;
|
||||
long d;
|
||||
} * d_ptr;
|
||||
} *d_ptr;
|
||||
|
||||
const size_t nelmts = NTESTELEM;
|
||||
unsigned char *buf = NULL, *orig = NULL, *bkg = NULL;
|
||||
@@ -7693,7 +7693,7 @@ test_int_float_except(void)
|
||||
{
|
||||
#if H5_SIZEOF_INT == 4 && H5_SIZEOF_FLOAT == 4
|
||||
float buf[CONVERT_SIZE] = {(float)INT_MIN - 172.0F, (float)INT_MAX - 32.0F, (float)INT_MAX - 68.0F,
|
||||
(float)4.5F};
|
||||
(float)4.5F};
|
||||
int buf_int[CONVERT_SIZE] = {INT_MIN, INT_MAX, INT_MAX - 127, 4};
|
||||
float buf_float[CONVERT_SIZE] = {(float)INT_MIN, (float)INT_MAX + 1.0F, (float)INT_MAX - 127.0F, 4};
|
||||
int *intp; /* Pointer to buffer, as integers */
|
||||
@@ -10115,7 +10115,7 @@ test_versionbounds(void)
|
||||
hsize_t arr_dim[] = {ARRAY_LEN}; /* Length of the array */
|
||||
int low, high; /* Indices for iterating over versions */
|
||||
H5F_libver_t versions[] = {H5F_LIBVER_EARLIEST, H5F_LIBVER_V18, H5F_LIBVER_V110,
|
||||
H5F_LIBVER_V112, H5F_LIBVER_V114, H5F_LIBVER_V114};
|
||||
H5F_LIBVER_V112, H5F_LIBVER_V114, H5F_LIBVER_V114};
|
||||
int versions_count = 6; /* Number of version bounds in the array */
|
||||
unsigned highest_version; /* Highest version in nested datatypes */
|
||||
color_t enum_val; /* Enum type index */
|
||||
|
||||
+4
-4
@@ -139,8 +139,8 @@ test_conv(hid_t file)
|
||||
c_e1 val;
|
||||
/* Some values are out of range for testing. The library should accept them */
|
||||
c_e1 data1[] = {E1_RED, E1_GREEN, E1_BLUE, E1_GREEN, E1_WHITE, E1_WHITE, E1_BLACK,
|
||||
E1_GREEN, E1_BLUE, E1_RED, E1_RED, E1_BLUE, E1_GREEN, E1_BLACK,
|
||||
E1_WHITE, E1_RED, E1_WHITE, (c_e1)0, (c_e1)-1, (c_e1)-2};
|
||||
E1_GREEN, E1_BLUE, E1_RED, E1_RED, E1_BLUE, E1_GREEN, E1_BLACK,
|
||||
E1_WHITE, E1_RED, E1_WHITE, (c_e1)0, (c_e1)-1, (c_e1)-2};
|
||||
c_e1 data2[NELMTS(data1)];
|
||||
short data_short[NELMTS(data1)];
|
||||
int data_int[NELMTS(data1)];
|
||||
@@ -314,7 +314,7 @@ test_tr1(hid_t file)
|
||||
c_e1 eval;
|
||||
int ival;
|
||||
c_e1 data1[10] = {E1_RED, E1_GREEN, E1_BLUE, E1_GREEN, E1_WHITE,
|
||||
E1_WHITE, E1_BLACK, E1_GREEN, E1_BLUE, E1_RED};
|
||||
E1_WHITE, E1_BLACK, E1_GREEN, E1_BLUE, E1_RED};
|
||||
c_e1 data2[10];
|
||||
|
||||
TESTING("O(1) conversions");
|
||||
@@ -414,7 +414,7 @@ test_tr2(hid_t file)
|
||||
c_e1 val1;
|
||||
int val2;
|
||||
c_e1 data1[10] = {E1_RED, E1_GREEN, E1_BLUE, E1_GREEN, E1_WHITE,
|
||||
E1_WHITE, E1_BLACK, E1_GREEN, E1_BLUE, E1_RED};
|
||||
E1_WHITE, E1_BLACK, E1_GREEN, E1_BLUE, E1_RED};
|
||||
c_e1 data2[10];
|
||||
|
||||
TESTING("O(log N) conversions");
|
||||
|
||||
@@ -26,8 +26,8 @@ const char *FILENAMES[] = {
|
||||
|
||||
#define DATASET "dset"
|
||||
#define NUM_ELMTS 100
|
||||
#define false 0
|
||||
#define true 1
|
||||
#define false 0
|
||||
#define true 1
|
||||
|
||||
/*
|
||||
* Compile and run this program in the trunk to generate
|
||||
|
||||
+29
-29
@@ -48,35 +48,35 @@ main(void)
|
||||
int little_endian;
|
||||
int word_length;
|
||||
H5AC_cache_config_t my_cache_config = {H5AC__CURR_CACHE_CONFIG_VERSION,
|
||||
1 /*true*/,
|
||||
0 /*false*/,
|
||||
0 /*false*/,
|
||||
"temp",
|
||||
1 /*true*/,
|
||||
0 /*false*/,
|
||||
(2 * 2048 * 1024),
|
||||
0.3,
|
||||
(64 * 1024 * 1024),
|
||||
(4 * 1024 * 1024),
|
||||
60000,
|
||||
H5C_incr__threshold,
|
||||
0.8,
|
||||
3.0,
|
||||
1 /*true*/,
|
||||
(8 * 1024 * 1024),
|
||||
H5C_flash_incr__add_space,
|
||||
2.0,
|
||||
0.25,
|
||||
H5C_decr__age_out_with_threshold,
|
||||
0.997,
|
||||
0.8,
|
||||
1 /*true*/,
|
||||
(3 * 1024 * 1024),
|
||||
3,
|
||||
0 /*false*/,
|
||||
0.2,
|
||||
(256 * 2048),
|
||||
H5AC_METADATA_WRITE_STRATEGY__PROCESS_0_ONLY};
|
||||
1 /*true*/,
|
||||
0 /*false*/,
|
||||
0 /*false*/,
|
||||
"temp",
|
||||
1 /*true*/,
|
||||
0 /*false*/,
|
||||
(2 * 2048 * 1024),
|
||||
0.3,
|
||||
(64 * 1024 * 1024),
|
||||
(4 * 1024 * 1024),
|
||||
60000,
|
||||
H5C_incr__threshold,
|
||||
0.8,
|
||||
3.0,
|
||||
1 /*true*/,
|
||||
(8 * 1024 * 1024),
|
||||
H5C_flash_incr__add_space,
|
||||
2.0,
|
||||
0.25,
|
||||
H5C_decr__age_out_with_threshold,
|
||||
0.997,
|
||||
0.8,
|
||||
1 /*true*/,
|
||||
(3 * 1024 * 1024),
|
||||
3,
|
||||
0 /*false*/,
|
||||
0.2,
|
||||
(256 * 2048),
|
||||
H5AC_METADATA_WRITE_STRATEGY__PROCESS_0_ONLY};
|
||||
H5AC_cache_image_config_t my_cache_image_config = {H5AC__CURR_CACHE_IMAGE_CONFIG_VERSION, true, false,
|
||||
-1};
|
||||
|
||||
|
||||
+35
-35
@@ -588,10 +588,10 @@ test_hdfs_fapl(void)
|
||||
* test-local variables *
|
||||
************************/
|
||||
|
||||
hid_t fapl_id = H5I_INVALID_HID; /* file access property list ID */
|
||||
hid_t driver_id = H5I_INVALID_HID; /* ID for this VFD */
|
||||
unsigned long driver_flags = 0; /* VFD feature flags */
|
||||
H5FD_hdfs_fapl_t hdfs_fa_0 = {
|
||||
hid_t fapl_id = H5I_INVALID_HID; /* file access property list ID */
|
||||
hid_t driver_id = H5I_INVALID_HID; /* ID for this VFD */
|
||||
unsigned long driver_flags = 0; /* VFD feature flags */
|
||||
H5FD_hdfs_fapl_t hdfs_fa_0 = {
|
||||
1, /* version*/
|
||||
"", /* node name */
|
||||
9000, /* node port */
|
||||
@@ -672,7 +672,7 @@ test_vfd_open(void)
|
||||
* test-local macros *
|
||||
*********************/
|
||||
|
||||
/* selectors for which fapl to use in testcase */
|
||||
/* selectors for which fapl to use in testcase */
|
||||
#define FAPL_H5P_DEFAULT -2
|
||||
#define FAPL_UNCONFIGURED -3 /* H5P_FILE_ACCESS */
|
||||
#define FAPL_HDFS -4
|
||||
@@ -684,10 +684,10 @@ test_vfd_open(void)
|
||||
struct test_condition {
|
||||
const char *message;
|
||||
const char *url;
|
||||
unsigned flags;
|
||||
int which_fapl;
|
||||
haddr_t maxaddr;
|
||||
bool might_use_other_driver;
|
||||
unsigned flags;
|
||||
int which_fapl;
|
||||
haddr_t maxaddr;
|
||||
bool might_use_other_driver;
|
||||
};
|
||||
|
||||
/************************
|
||||
@@ -776,11 +776,11 @@ test_vfd_open(void)
|
||||
false,
|
||||
},
|
||||
};
|
||||
unsigned i = 0;
|
||||
unsigned i = 0;
|
||||
unsigned failing_conditions_count = 10;
|
||||
H5FD_t *fd = NULL;
|
||||
hid_t fapl_hdfs = H5I_INVALID_HID;
|
||||
hid_t fapl_unconfigured = H5I_INVALID_HID;
|
||||
H5FD_t *fd = NULL;
|
||||
hid_t fapl_hdfs = H5I_INVALID_HID;
|
||||
hid_t fapl_unconfigured = H5I_INVALID_HID;
|
||||
|
||||
TESTING("HDFS VFD-level open");
|
||||
|
||||
@@ -798,8 +798,8 @@ test_vfd_open(void)
|
||||
/* all the test cases that will _not_ open
|
||||
*/
|
||||
for (i = 0; i < failing_conditions_count; i++) {
|
||||
struct test_condition T = failing_conditions[i];
|
||||
hid_t fapl_id = H5P_DEFAULT;
|
||||
struct test_condition T = failing_conditions[i];
|
||||
hid_t fapl_id = H5P_DEFAULT;
|
||||
|
||||
fd = NULL;
|
||||
|
||||
@@ -934,7 +934,7 @@ test_eof_eoa(void)
|
||||
************************/
|
||||
|
||||
H5FD_t *fd_shakespeare = NULL;
|
||||
hid_t fapl_id = H5I_INVALID_HID;
|
||||
hid_t fapl_id = H5I_INVALID_HID;
|
||||
|
||||
TESTING("HDFS eof/eoa gets and sets");
|
||||
|
||||
@@ -1031,10 +1031,10 @@ test_H5FDread_without_eoa_set_fails(void)
|
||||
|
||||
#else
|
||||
|
||||
char buffer[HDFS_TEST_MAX_BUF_SIZE];
|
||||
unsigned int i = 0;
|
||||
H5FD_t *file_shakespeare = NULL;
|
||||
hid_t fapl_id = H5I_INVALID_HID;
|
||||
char buffer[HDFS_TEST_MAX_BUF_SIZE];
|
||||
unsigned int i = 0;
|
||||
H5FD_t *file_shakespeare = NULL;
|
||||
hid_t fapl_id = H5I_INVALID_HID;
|
||||
|
||||
TESTING("HDFS VFD read-eoa temporal coupling library limitation");
|
||||
|
||||
@@ -1139,10 +1139,10 @@ test_read(void)
|
||||
*************************/
|
||||
struct testcase {
|
||||
const char *message; /* purpose of test case */
|
||||
haddr_t eoa_set; /* set file EOA to this prior to read */
|
||||
size_t addr; /* offset of read in file */
|
||||
size_t len; /* length of read in file */
|
||||
herr_t success; /* expected return value of read function */
|
||||
haddr_t eoa_set; /* set file EOA to this prior to read */
|
||||
size_t addr; /* offset of read in file */
|
||||
size_t len; /* length of read in file */
|
||||
herr_t success; /* expected return value of read function */
|
||||
const char *expected; /* expected contents of buffer; failure ignores */
|
||||
};
|
||||
|
||||
@@ -1199,14 +1199,14 @@ test_read(void)
|
||||
NULL,
|
||||
},
|
||||
};
|
||||
unsigned testcase_count = 6;
|
||||
unsigned test_i = 0;
|
||||
unsigned testcase_count = 6;
|
||||
unsigned test_i = 0;
|
||||
struct testcase test;
|
||||
herr_t open_return = FAIL;
|
||||
char buffer[HDFS_TEST_MAX_BUF_SIZE];
|
||||
unsigned int i = 0;
|
||||
H5FD_t *file_raven = NULL;
|
||||
hid_t fapl_id = H5I_INVALID_HID;
|
||||
herr_t open_return = FAIL;
|
||||
char buffer[HDFS_TEST_MAX_BUF_SIZE];
|
||||
unsigned int i = 0;
|
||||
H5FD_t *file_raven = NULL;
|
||||
hid_t fapl_id = H5I_INVALID_HID;
|
||||
|
||||
TESTING("HDFS VFD read/range-gets");
|
||||
|
||||
@@ -1243,7 +1243,7 @@ test_read(void)
|
||||
* per-test setup *
|
||||
* -------------- */
|
||||
|
||||
test = cases[test_i];
|
||||
test = cases[test_i];
|
||||
open_return = FAIL;
|
||||
|
||||
FAIL_IF(HDFS_TEST_MAX_BUF_SIZE < test.len) /* buffer too small! */
|
||||
@@ -1349,8 +1349,8 @@ test_noops_and_autofails(void)
|
||||
* test-local variables *
|
||||
************************/
|
||||
|
||||
hid_t fapl_id = H5I_INVALID_HID;
|
||||
H5FD_t *file = NULL;
|
||||
hid_t fapl_id = H5I_INVALID_HID;
|
||||
H5FD_t *file = NULL;
|
||||
const char data[36] = "The Force shall be with you, always";
|
||||
|
||||
TESTING("HDFS VFD always-fail and no-op routines");
|
||||
@@ -1485,7 +1485,7 @@ test_H5F_integration(void)
|
||||
* test-local variables *
|
||||
************************/
|
||||
|
||||
hid_t file = H5I_INVALID_HID;
|
||||
hid_t file = H5I_INVALID_HID;
|
||||
hid_t fapl_id = H5I_INVALID_HID;
|
||||
|
||||
TESTING("HDFS file access through HD5F library (H5F API)");
|
||||
|
||||
+2
-2
@@ -2316,7 +2316,7 @@ test_random_rank4(hid_t fapl, hid_t dcpl, hid_t dxpl, bool do_fillvalue, bool di
|
||||
} *wbuf = NULL; /* Write buffer */
|
||||
struct {
|
||||
hsize_t arr[RAND4_NITER + 1][4];
|
||||
} *dim_log = NULL; /* Log of dataset dimensions */
|
||||
} *dim_log = NULL; /* Log of dataset dimensions */
|
||||
bool zero_dim = false; /* Whether a dimension is 0 */
|
||||
bool writing = true; /* Whether we're writing to the dset */
|
||||
unsigned scalar_iter; /* Iteration to shrink dset to 1x1x1x1 */
|
||||
@@ -2534,7 +2534,7 @@ test_random_rank4_vl(hid_t fapl, hid_t dcpl, hid_t dxpl, bool do_fillvalue, bool
|
||||
} *wbuf = NULL; /* Write buffer */
|
||||
struct {
|
||||
hsize_t arr[RAND4_NITER + 1][4];
|
||||
} *dim_log = NULL; /* Log of dataset dimensions */
|
||||
} *dim_log = NULL; /* Log of dataset dimensions */
|
||||
bool zero_dim = false; /* Whether a dimension is 0 */
|
||||
bool writing = true; /* Whether we're writing to the dset */
|
||||
hvl_t fill_value; /* Fill value */
|
||||
|
||||
+5
-5
@@ -386,7 +386,7 @@ test_multiple_ends(hid_t file, bool is_chunked)
|
||||
/* For testing the full selections in the fastest-growing end and in the middle dimensions */
|
||||
struct {
|
||||
int arr[1][1][1][4][2][1][6][2];
|
||||
} *mem1_buffer = NULL;
|
||||
} *mem1_buffer = NULL;
|
||||
hsize_t mem1_dims[8] = {1, 1, 1, 4, 2, 1, 6, 2};
|
||||
hsize_t mem1_start[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||
hsize_t mem1_count[8] = {1, 1, 1, 1, 1, 1, 1, 1};
|
||||
@@ -396,7 +396,7 @@ test_multiple_ends(hid_t file, bool is_chunked)
|
||||
/* For testing the full selections in the slowest-growing end and in the middle dimensions */
|
||||
struct {
|
||||
int arr[4][5][1][4][2][1][1][1];
|
||||
} *mem2_buffer = NULL;
|
||||
} *mem2_buffer = NULL;
|
||||
hsize_t mem2_dims[8] = {4, 5, 1, 4, 2, 1, 1, 1};
|
||||
hsize_t mem2_start[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||
hsize_t mem2_count[8] = {1, 1, 1, 1, 1, 1, 1, 1};
|
||||
@@ -406,7 +406,7 @@ test_multiple_ends(hid_t file, bool is_chunked)
|
||||
/* For testing two unadjacent full selections in the middle dimensions */
|
||||
struct {
|
||||
int arr[1][5][3][1][1][3][6][1];
|
||||
} *mem3_buffer = NULL;
|
||||
} *mem3_buffer = NULL;
|
||||
hsize_t mem3_dims[8] = {1, 5, 3, 1, 1, 3, 6, 1};
|
||||
hsize_t mem3_start[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||
hsize_t mem3_count[8] = {1, 1, 1, 1, 1, 1, 1, 1};
|
||||
@@ -416,7 +416,7 @@ test_multiple_ends(hid_t file, bool is_chunked)
|
||||
/* For testing the full selections in the fastest-growing end and the slowest-growing end */
|
||||
struct {
|
||||
int arr[4][5][1][1][1][1][6][2];
|
||||
} *mem4_buffer = NULL;
|
||||
} *mem4_buffer = NULL;
|
||||
hsize_t mem4_dims[8] = {4, 5, 1, 1, 1, 1, 6, 2};
|
||||
hsize_t mem4_start[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||
hsize_t mem4_count[8] = {1, 1, 1, 1, 1, 1, 1, 1};
|
||||
@@ -427,7 +427,7 @@ test_multiple_ends(hid_t file, bool is_chunked)
|
||||
* also in the middle dimensions */
|
||||
struct {
|
||||
int arr[4][5][1][4][2][1][6][2];
|
||||
} *mem5_buffer = NULL;
|
||||
} *mem5_buffer = NULL;
|
||||
hsize_t mem5_dims[8] = {4, 5, 1, 4, 2, 1, 6, 2};
|
||||
hsize_t mem5_start[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||
hsize_t mem5_count[8] = {1, 1, 1, 1, 1, 1, 1, 1};
|
||||
|
||||
+4
-4
@@ -28,18 +28,18 @@
|
||||
|
||||
static uint8_t compar_buffer[] = {
|
||||
/* Little-endian encoded version of the 16-bit signed integer */
|
||||
(uint8_t)((TEST_INT16_VALUE)&0xff),
|
||||
(uint8_t)((TEST_INT16_VALUE) & 0xff),
|
||||
(uint8_t)((TEST_INT16_VALUE >> 8) & 0xff),
|
||||
/* Little-endian encoded version of the 16-bit unsigned integer */
|
||||
(uint8_t)((TEST_UINT16_VALUE)&0xff),
|
||||
(uint8_t)((TEST_UINT16_VALUE) & 0xff),
|
||||
(uint8_t)((TEST_UINT16_VALUE >> 8) & 0xff),
|
||||
/* Little-endian encoded version of the 32-bit signed integer */
|
||||
(uint8_t)((TEST_INT32_VALUE)&0xff),
|
||||
(uint8_t)((TEST_INT32_VALUE) & 0xff),
|
||||
(uint8_t)((TEST_INT32_VALUE >> 8) & 0xff),
|
||||
(uint8_t)((TEST_INT32_VALUE >> 16) & 0xff),
|
||||
(uint8_t)((TEST_INT32_VALUE >> 24) & 0xff),
|
||||
/* Little-endian encoded version of the 32-bit unsigned integer */
|
||||
(uint8_t)((TEST_UINT32_VALUE)&0xff),
|
||||
(uint8_t)((TEST_UINT32_VALUE) & 0xff),
|
||||
(uint8_t)((TEST_UINT32_VALUE >> 8) & 0xff),
|
||||
(uint8_t)((TEST_UINT32_VALUE >> 16) & 0xff),
|
||||
(uint8_t)((TEST_UINT32_VALUE >> 24) & 0xff),
|
||||
|
||||
+6
-6
@@ -531,9 +531,9 @@ test_skiplist_string(void)
|
||||
const char *s;
|
||||
} string_node;
|
||||
string_node data[10] = {{10, "10"}, {20, "20"}, {15, "15"}, {5, "05"}, {50, "50"},
|
||||
{30, "30"}, {31, "31"}, {32, "32"}, {80, "80"}, {90, "90"}};
|
||||
{30, "30"}, {31, "31"}, {32, "32"}, {80, "80"}, {90, "90"}};
|
||||
string_node hashed_data[10] = {{5, "05"}, {10, "10"}, {15, "15"}, {20, "20"}, {30, "30"},
|
||||
{31, "31"}, {32, "32"}, {50, "50"}, {80, "80"}, {90, "90"}};
|
||||
{31, "31"}, {32, "32"}, {50, "50"}, {80, "80"}, {90, "90"}};
|
||||
string_node *found_item; /* Item found in skip list */
|
||||
herr_t ret; /* Generic return value */
|
||||
|
||||
@@ -755,9 +755,9 @@ test_skiplist_obj(void)
|
||||
size_t num; /* Number of elements in skip list */
|
||||
size_t u; /* Local index variable */
|
||||
H5_obj_t data[10] = {{10, 12}, {20, 12}, {10, 32}, {10, 11}, {50, 1},
|
||||
{8, 12}, {31, 12}, {20, 11}, {31, 11}, {8, 32}};
|
||||
{8, 12}, {31, 12}, {20, 11}, {31, 11}, {8, 32}};
|
||||
H5_obj_t sorted_data[10] = {{8, 12}, {8, 32}, {10, 11}, {10, 12}, {10, 32},
|
||||
{20, 11}, {20, 12}, {31, 11}, {31, 12}, {50, 1}};
|
||||
{20, 11}, {20, 12}, {31, 11}, {31, 12}, {50, 1}};
|
||||
H5_obj_t *found_item; /* Item found in skip list */
|
||||
herr_t ret; /* Generic return value */
|
||||
|
||||
@@ -836,9 +836,9 @@ test_skiplist_generic(void)
|
||||
size_t num; /* Number of elements in skip list */
|
||||
size_t u; /* Local index variable */
|
||||
generic_t data[10] = {{10, 1}, {20, 13}, {15, 32}, {5, 2}, {50, 37},
|
||||
{30, 100}, {31, 38}, {32, 34}, {80, 32}, {90, 0}};
|
||||
{30, 100}, {31, 38}, {32, 34}, {80, 32}, {90, 0}};
|
||||
generic_t sorted_data[10] = {{30, 100}, {15, 32}, {31, 38}, {32, 34}, {5, 2},
|
||||
{20, 13}, {10, 1}, {50, 37}, {80, 32}, {90, 0}};
|
||||
{20, 13}, {10, 1}, {50, 37}, {80, 32}, {90, 0}};
|
||||
generic_t *found_item; /* Item found in skip list */
|
||||
herr_t ret; /* Generic return value */
|
||||
|
||||
|
||||
+3
-3
@@ -71,8 +71,8 @@ typedef struct dtype1_struct {
|
||||
|
||||
#define DTYPE2_SIZE 1024
|
||||
static const char *DSETNAME[] = {"dataset0", "dataset1", "dataset2", "dataset3", "dataset4",
|
||||
"dataset5", "dataset6", "dataset7", "dataset8", "dataset9",
|
||||
"dataset10", "dataset11", NULL};
|
||||
"dataset5", "dataset6", "dataset7", "dataset8", "dataset9",
|
||||
"dataset10", "dataset11", NULL};
|
||||
static const char *EXTRA_DSETNAME[] = {"ex_dataset0", "ex_dataset1", "ex_dataset2",
|
||||
"ex_dataset3", "ex_dataset4", "ex_dataset5",
|
||||
"ex_dataset6", "ex_dataset7", "ex_dataset8",
|
||||
@@ -94,7 +94,7 @@ static const char *ENUM_NAME[] = {"enum_member0", "enum_member1", "enum_member
|
||||
"enum_member15", "enum_member16", "enum_member17",
|
||||
"enum_member18", "enum_member19", NULL};
|
||||
static const int ENUM_VAL[] = {0, 13, -500, 63, 64, -64, 65, 2048, 1, 2, -1,
|
||||
7, 130, -5000, 630, 640, -640, 650, 20480, 10, -1001, -10};
|
||||
7, 130, -5000, 630, 640, -640, 650, 20480, 10, -1001, -10};
|
||||
#define SIZE2_RANK1 6
|
||||
#define SIZE2_RANK2 10
|
||||
#define SIZE2_DIMS \
|
||||
|
||||
+1
-1
@@ -2542,7 +2542,7 @@ test_vltypes_fill_value(void)
|
||||
hsize_t large_dims[] = {SPACE4_DIM_LARGE};
|
||||
size_t dset_elmts = 0; /* Number of elements in a particular dataset */
|
||||
const dtype1_struct fill1 = {1, 2, "foobar", "", NULL, "\0", "dead",
|
||||
3, 4.0, 100.0, 1.0, "liquid", "meter"};
|
||||
3, 4.0, 100.0, 1.0, "liquid", "meter"};
|
||||
const dtype1_struct wdata = {3, 4, "", NULL, "\0", "foo", "two", 6, 8.0, 200.0, 2.0, "solid", "yard"};
|
||||
dtype1_struct *rbuf = NULL; /* Buffer for reading data */
|
||||
size_t mem_used = 0; /* Memory used during allocation */
|
||||
|
||||
+1
-1
@@ -529,7 +529,7 @@ test_filespace(hid_t fapl)
|
||||
char objname[128]; /* Name of object to create */
|
||||
hsize_t dims[FILESPACE_NDIMS] = {FILESPACE_DIM0, FILESPACE_DIM1, FILESPACE_DIM2}; /* Dataset dimensions */
|
||||
hsize_t chunk_dims[FILESPACE_NDIMS] = {FILESPACE_CHUNK0, FILESPACE_CHUNK1,
|
||||
FILESPACE_CHUNK2}; /* Chunk dimensions */
|
||||
FILESPACE_CHUNK2}; /* Chunk dimensions */
|
||||
hsize_t attr_dims[FILESPACE_ATTR_NDIMS] = {FILESPACE_ATTR_DIM0,
|
||||
FILESPACE_ATTR_DIM1}; /* Attribute dimensions */
|
||||
int *data = NULL; /* Pointer to dataset buffer */
|
||||
|
||||
+16
-16
@@ -522,7 +522,7 @@ test_api(test_api_config_t config, hid_t fapl, H5F_libver_t low)
|
||||
hid_t dcpl = H5I_INVALID_HID; /* Dataset creation property list */
|
||||
hid_t ex_dcpl = H5I_INVALID_HID; /* Temporary dcpl for examination */
|
||||
hid_t srcspace[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Source dataspaces */
|
||||
H5I_INVALID_HID}; /* Source dataspaces */
|
||||
hid_t vspace[LIST_DOUBLE_SIZE]; /* Virtual dset dataspaces */
|
||||
const char *src_file[4] = {"src_file1", "src_file2.", "src_file3..",
|
||||
"src_file4..."}; /* Source file names (different lengths) */
|
||||
@@ -1188,17 +1188,17 @@ test_vds_prefix_first(unsigned config, hid_t vds_fapl, hid_t src_fapl)
|
||||
char *srcfilenamepct_map = NULL;
|
||||
const char *srcfilenamepct_map_orig = "vds%%%%_src";
|
||||
hid_t srcfile[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Files with source dsets */
|
||||
H5I_INVALID_HID}; /* Files with source dsets */
|
||||
hid_t vfile = H5I_INVALID_HID; /* File with virtual dset */
|
||||
hid_t dcpl = H5I_INVALID_HID; /* Dataset creation property list */
|
||||
hid_t dapl = H5I_INVALID_HID; /* Dataset access property list */
|
||||
hid_t srcspace[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Source dataspaces */
|
||||
H5I_INVALID_HID}; /* Source dataspaces */
|
||||
hid_t vspace[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Virtual dset dataspaces */
|
||||
H5I_INVALID_HID}; /* Virtual dset dataspaces */
|
||||
hid_t memspace = H5I_INVALID_HID; /* Memory dataspace */
|
||||
hid_t srcdset[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Source datasets */
|
||||
H5I_INVALID_HID}; /* Source datasets */
|
||||
hid_t vdset = H5I_INVALID_HID; /* Virtual dataset */
|
||||
hsize_t dims[4] = {10, 26, 0, 0}; /* Data space current size */
|
||||
int buf[10][26]; /* Write and expected read buffer */
|
||||
@@ -1471,17 +1471,17 @@ test_basic_io(unsigned config, hid_t vds_fapl, hid_t src_fapl)
|
||||
char *srcfilenamepct_map = NULL;
|
||||
const char *srcfilenamepct_map_orig = "vds%%%%_src";
|
||||
hid_t srcfile[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Files with source dsets */
|
||||
H5I_INVALID_HID}; /* Files with source dsets */
|
||||
hid_t vfile = H5I_INVALID_HID; /* File with virtual dset */
|
||||
hid_t vfile2 = H5I_INVALID_HID; /* File with copied virtual dset */
|
||||
hid_t dcpl = H5I_INVALID_HID; /* Dataset creation property list */
|
||||
hid_t srcspace[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Source dataspaces */
|
||||
H5I_INVALID_HID}; /* Source dataspaces */
|
||||
hid_t vspace[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Virtual dset dataspaces */
|
||||
H5I_INVALID_HID}; /* Virtual dset dataspaces */
|
||||
hid_t memspace = H5I_INVALID_HID; /* Memory dataspace */
|
||||
hid_t srcdset[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Source datasets */
|
||||
H5I_INVALID_HID}; /* Source datasets */
|
||||
hid_t vdset = H5I_INVALID_HID; /* Virtual dataset */
|
||||
hsize_t dims[4] = {10, 26, 0, 0}; /* Data space current size */
|
||||
hsize_t start[4]; /* Hyperslab start */
|
||||
@@ -4401,19 +4401,19 @@ test_unlim(unsigned config, hid_t vds_fapl, hid_t src_fapl)
|
||||
char srcfilename_map[FILENAME_BUF_SIZE];
|
||||
char vfilename[FILENAME_BUF_SIZE];
|
||||
hid_t srcfile[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Files with source dsets */
|
||||
H5I_INVALID_HID}; /* Files with source dsets */
|
||||
hid_t vfile = H5I_INVALID_HID; /* File with virtual dset */
|
||||
hid_t dcpl = H5I_INVALID_HID; /* Dataset creation property list */
|
||||
hid_t srcdcpl = H5I_INVALID_HID; /* DCPL for source dset */
|
||||
hid_t dapl = H5I_INVALID_HID; /* Dataset access property list */
|
||||
hid_t srcspace[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Source dataspaces */
|
||||
H5I_INVALID_HID}; /* Source dataspaces */
|
||||
hid_t vspace[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Virtual dset dataspaces */
|
||||
H5I_INVALID_HID}; /* Virtual dset dataspaces */
|
||||
hid_t memspace = H5I_INVALID_HID; /* Memory dataspace */
|
||||
hid_t filespace = H5I_INVALID_HID; /* File dataspace */
|
||||
hid_t srcdset[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Source datasets */
|
||||
H5I_INVALID_HID}; /* Source datasets */
|
||||
hid_t vdset = H5I_INVALID_HID; /* Virtual dataset */
|
||||
hsize_t dims[2] = {10, 10}; /* Data space current size */
|
||||
hsize_t mdims[2] = {10, 20}; /* Data space maximum size */
|
||||
@@ -7420,7 +7420,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
|
||||
const char *printf_srcfilename_map_orig = "vds_src_%b";
|
||||
const char *srcfilenamepct_map_orig = "vds%%%%_src";
|
||||
hid_t srcfile[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Files with source dsets */
|
||||
H5I_INVALID_HID}; /* Files with source dsets */
|
||||
hid_t vfile = H5I_INVALID_HID; /* File with virtual dset */
|
||||
hid_t dcpl = H5I_INVALID_HID; /* Dataset creation property list */
|
||||
hid_t dapl = H5I_INVALID_HID; /* Dataset access property list */
|
||||
@@ -7429,7 +7429,7 @@ test_printf(unsigned config, hid_t vds_fapl, hid_t src_fapl)
|
||||
hid_t memspace = H5I_INVALID_HID; /* Memory dataspace */
|
||||
hid_t filespace = H5I_INVALID_HID; /* File dataspace */
|
||||
hid_t srcdset[6] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID}; /* Source datasets */
|
||||
H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID}; /* Source datasets */
|
||||
hid_t vdset = H5I_INVALID_HID; /* Virtual dataset */
|
||||
hsize_t dims[2] = {10, 0}; /* Data space current size */
|
||||
hsize_t mdims[2] = {10, 20}; /* Data space maximum size */
|
||||
@@ -11140,7 +11140,7 @@ test_all(unsigned config, hid_t vds_fapl, hid_t src_fapl)
|
||||
hid_t memspace = H5I_INVALID_HID; /* Memory dataspace */
|
||||
hid_t filespace = H5I_INVALID_HID; /* File dataspace */
|
||||
hid_t srcdset[5] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Source datasets */
|
||||
H5I_INVALID_HID}; /* Source datasets */
|
||||
hid_t vdset = H5I_INVALID_HID; /* Virtual dataset */
|
||||
hsize_t dims[2] = {6, 6}; /* Data space current size */
|
||||
hsize_t mdims[2] = {10, 10}; /* Data space maximum size */
|
||||
|
||||
+4
-4
@@ -49,17 +49,17 @@ test_vds_prefix_second(unsigned config, hid_t fapl)
|
||||
char *srcfilenamepct = NULL;
|
||||
char *srcfilenamepct_map = NULL;
|
||||
hid_t srcfile[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Files with source dsets */
|
||||
H5I_INVALID_HID}; /* Files with source dsets */
|
||||
hid_t vfile = H5I_INVALID_HID; /* File with virtual dset */
|
||||
hid_t dcpl = H5I_INVALID_HID; /* Dataset creation property list */
|
||||
hid_t dapl = H5I_INVALID_HID; /* Dataset access property list */
|
||||
hid_t srcspace[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Source dataspaces */
|
||||
H5I_INVALID_HID}; /* Source dataspaces */
|
||||
hid_t vspace[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Virtual dset dataspaces */
|
||||
H5I_INVALID_HID}; /* Virtual dset dataspaces */
|
||||
hid_t memspace = H5I_INVALID_HID; /* Memory dataspace */
|
||||
hid_t srcdset[4] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID}; /* Source datasets */
|
||||
H5I_INVALID_HID}; /* Source datasets */
|
||||
hid_t vdset = H5I_INVALID_HID; /* Virtual dataset */
|
||||
hsize_t dims[4] = {10, 26, 0, 0}; /* Data space current size */
|
||||
int buf[10][26]; /* Write and expected read buffer */
|
||||
|
||||
@@ -434,7 +434,7 @@ test_multi_dataset_io(void)
|
||||
hid_t file_id = H5I_INVALID_HID;
|
||||
hid_t fapl_id = H5I_INVALID_HID;
|
||||
hid_t dset_id[MULTI_DATASET_IO_TEST_NDSETS] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID, H5I_INVALID_HID};
|
||||
H5I_INVALID_HID, H5I_INVALID_HID};
|
||||
hid_t space_id = H5I_INVALID_HID;
|
||||
hid_t mspace_id = H5I_INVALID_HID;
|
||||
hid_t es_id = H5I_INVALID_HID;
|
||||
@@ -758,9 +758,9 @@ test_multi_file_dataset_io(void)
|
||||
size_t i, j, data_size, num_in_progress;
|
||||
hid_t fapl_id = H5I_INVALID_HID;
|
||||
hid_t file_id[MULTI_FILE_DATASET_IO_TEST_NFILES] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID, H5I_INVALID_HID};
|
||||
H5I_INVALID_HID, H5I_INVALID_HID};
|
||||
hid_t dset_id[MULTI_FILE_DATASET_IO_TEST_NFILES] = {H5I_INVALID_HID, H5I_INVALID_HID, H5I_INVALID_HID,
|
||||
H5I_INVALID_HID, H5I_INVALID_HID};
|
||||
H5I_INVALID_HID, H5I_INVALID_HID};
|
||||
hid_t space_id = H5I_INVALID_HID;
|
||||
hid_t mspace_id = H5I_INVALID_HID;
|
||||
hid_t es_id = H5I_INVALID_HID;
|
||||
|
||||
+51
-51
@@ -1068,7 +1068,7 @@ setup_derived_types(void)
|
||||
int i;
|
||||
int result;
|
||||
MPI_Datatype mpi_types[9] = {MPI_INT, MPI_INT, MPI_INT, MPI_LONG, HADDR_AS_MPI_TYPE,
|
||||
MPI_INT, MPI_INT, MPI_UNSIGNED, MPI_UNSIGNED};
|
||||
MPI_INT, MPI_INT, MPI_UNSIGNED, MPI_UNSIGNED};
|
||||
int block_len[9] = {1, 1, 1, 1, 1, 1, 1, 1, 1};
|
||||
MPI_Aint displs[9];
|
||||
struct mssg_t sample; /* used to compute displacements */
|
||||
@@ -6037,57 +6037,57 @@ trace_file_check(int metadata_write_strategy)
|
||||
|
||||
const char *((*expected_output)[]) = NULL;
|
||||
const char *expected_output_0[] = {"### HDF5 metadata cache trace file version 1 ###\n",
|
||||
"H5AC_set_cache_auto_resize_config",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_protect",
|
||||
"H5AC_mark_entry_dirty",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_protect",
|
||||
"H5AC_pin_protected_entry",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_unpin_entry",
|
||||
"H5AC_expunge_entry",
|
||||
"H5AC_protect",
|
||||
"H5AC_pin_protected_entry",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_mark_entry_dirty",
|
||||
"H5AC_resize_entry",
|
||||
"H5AC_resize_entry",
|
||||
"H5AC_unpin_entry",
|
||||
"H5AC_move_entry",
|
||||
"H5AC_move_entry",
|
||||
"H5AC_flush",
|
||||
"H5AC_flush",
|
||||
NULL};
|
||||
"H5AC_set_cache_auto_resize_config",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_protect",
|
||||
"H5AC_mark_entry_dirty",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_protect",
|
||||
"H5AC_pin_protected_entry",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_unpin_entry",
|
||||
"H5AC_expunge_entry",
|
||||
"H5AC_protect",
|
||||
"H5AC_pin_protected_entry",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_mark_entry_dirty",
|
||||
"H5AC_resize_entry",
|
||||
"H5AC_resize_entry",
|
||||
"H5AC_unpin_entry",
|
||||
"H5AC_move_entry",
|
||||
"H5AC_move_entry",
|
||||
"H5AC_flush",
|
||||
"H5AC_flush",
|
||||
NULL};
|
||||
const char *expected_output_1[] = {"### HDF5 metadata cache trace file version 1 ###\n",
|
||||
"H5AC_set_cache_auto_resize_config",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_protect",
|
||||
"H5AC_mark_entry_dirty",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_protect",
|
||||
"H5AC_pin_protected_entry",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_unpin_entry",
|
||||
"H5AC_expunge_entry",
|
||||
"H5AC_protect",
|
||||
"H5AC_pin_protected_entry",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_mark_entry_dirty",
|
||||
"H5AC_resize_entry",
|
||||
"H5AC_resize_entry",
|
||||
"H5AC_unpin_entry",
|
||||
"H5AC_move_entry",
|
||||
"H5AC_move_entry",
|
||||
"H5AC_flush",
|
||||
"H5AC_flush",
|
||||
NULL};
|
||||
"H5AC_set_cache_auto_resize_config",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_insert_entry",
|
||||
"H5AC_protect",
|
||||
"H5AC_mark_entry_dirty",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_protect",
|
||||
"H5AC_pin_protected_entry",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_unpin_entry",
|
||||
"H5AC_expunge_entry",
|
||||
"H5AC_protect",
|
||||
"H5AC_pin_protected_entry",
|
||||
"H5AC_unprotect",
|
||||
"H5AC_mark_entry_dirty",
|
||||
"H5AC_resize_entry",
|
||||
"H5AC_resize_entry",
|
||||
"H5AC_unpin_entry",
|
||||
"H5AC_move_entry",
|
||||
"H5AC_move_entry",
|
||||
"H5AC_flush",
|
||||
"H5AC_flush",
|
||||
NULL};
|
||||
char buffer[256];
|
||||
char trace_file_name[64];
|
||||
bool done = false;
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ test_partial_no_selection_coll_md_read(void)
|
||||
hsize_t max_dataset_dims[PARTIAL_NO_SELECTION_DATASET_NDIMS];
|
||||
hsize_t sel_dims[1];
|
||||
hsize_t chunk_dims[PARTIAL_NO_SELECTION_DATASET_NDIMS] = {PARTIAL_NO_SELECTION_Y_DIM_SCALE,
|
||||
PARTIAL_NO_SELECTION_X_DIM_SCALE};
|
||||
PARTIAL_NO_SELECTION_X_DIM_SCALE};
|
||||
hsize_t start[PARTIAL_NO_SELECTION_DATASET_NDIMS];
|
||||
hsize_t stride[PARTIAL_NO_SELECTION_DATASET_NDIMS];
|
||||
hsize_t count[PARTIAL_NO_SELECTION_DATASET_NDIMS];
|
||||
|
||||
+1
-1
@@ -1894,7 +1894,7 @@ io_mode_confusion(void)
|
||||
const char *dataset_name[NUM_DATA_SETS] = {"dataset_0", "dataset_1", "dataset_2", "dataset_3"};
|
||||
const char *att_name[NUM_DATA_SETS] = {"attribute_0", "attribute_1", "attribute_2", "attribute_3"};
|
||||
const char *lg_att_name[NUM_DATA_SETS] = {"large_attribute_0", "large_attribute_1", "large_attribute_2",
|
||||
"large_attribute_3"};
|
||||
"large_attribute_3"};
|
||||
|
||||
void
|
||||
rr_obj_hdr_flush_confusion(void)
|
||||
|
||||
+1
-1
@@ -701,7 +701,7 @@ trav_table_addlink(trav_table_t *table, const H5O_token_t *obj_token, const char
|
||||
if (table->objs[i].nlinks == (unsigned)table->objs[i].sizelinks) {
|
||||
table->objs[i].sizelinks = MAX(1, table->objs[i].sizelinks * 2);
|
||||
table->objs[i].links = (trav_link_t *)realloc(
|
||||
table->objs[i].links, table->objs[i].sizelinks * sizeof(trav_link_t));
|
||||
table->objs[i].links, table->objs[i].sizelinks * sizeof(trav_link_t));
|
||||
} /* end if */
|
||||
|
||||
/* insert it */
|
||||
|
||||
@@ -674,8 +674,8 @@ test_populate_ros3_fa(void)
|
||||
{
|
||||
H5FD_ros3_fapl_ext_t fa = {{bad_version, false, "a", "b", "c"}, "d"};
|
||||
const char *values[] = {"somewhere over the rainbow not too high "
|
||||
"there is another rainbow bounding some darkened sky",
|
||||
"y", "z", ""};
|
||||
"there is another rainbow bounding some darkened sky",
|
||||
"y", "z", ""};
|
||||
|
||||
if (show_progress) {
|
||||
printf("region overflow\n");
|
||||
@@ -738,17 +738,17 @@ test_populate_ros3_fa(void)
|
||||
{
|
||||
H5FD_ros3_fapl_ext_t fa = {{bad_version, false, "a", "b", "c"}, "d"};
|
||||
const char *values[] = {"x",
|
||||
"Why is it necessary to solve the problem? "
|
||||
"What benefits will you receive by solving the problem? "
|
||||
"What is the unknown? "
|
||||
"What is it you don't yet understand? "
|
||||
"What is the information you have? "
|
||||
"What isn't the problem? "
|
||||
"Is the information insufficient, redundant, or contradictory? "
|
||||
"Should you draw a diagram or figure of the problem? "
|
||||
"What are the boundaries of the problem? "
|
||||
"Can you separate the various parts of the problem?",
|
||||
"z", ""};
|
||||
"Why is it necessary to solve the problem? "
|
||||
"What benefits will you receive by solving the problem? "
|
||||
"What is the unknown? "
|
||||
"What is it you don't yet understand? "
|
||||
"What is the information you have? "
|
||||
"What isn't the problem? "
|
||||
"Is the information insufficient, redundant, or contradictory? "
|
||||
"Should you draw a diagram or figure of the problem? "
|
||||
"What are the boundaries of the problem? "
|
||||
"Can you separate the various parts of the problem?",
|
||||
"z", ""};
|
||||
|
||||
if (show_progress) {
|
||||
printf("id overflow\n");
|
||||
@@ -871,17 +871,17 @@ test_populate_ros3_fa(void)
|
||||
{
|
||||
H5FD_ros3_fapl_ext_t fa = {{bad_version, false, "a", "b", "c"}, "d"};
|
||||
const char *values[] = {"x", "y",
|
||||
"Why is it necessary to solve the problem? "
|
||||
"What benefits will you receive by solving the problem? "
|
||||
"What is the unknown? "
|
||||
"What is it you don't yet understand? "
|
||||
"What is the information you have? "
|
||||
"What isn't the problem? "
|
||||
"Is the information insufficient, redundant, or contradictory? "
|
||||
"Should you draw a diagram or figure of the problem? "
|
||||
"What are the boundaries of the problem? "
|
||||
"Can you separate the various parts of the problem?",
|
||||
""};
|
||||
"Why is it necessary to solve the problem? "
|
||||
"What benefits will you receive by solving the problem? "
|
||||
"What is the unknown? "
|
||||
"What is it you don't yet understand? "
|
||||
"What is the information you have? "
|
||||
"What isn't the problem? "
|
||||
"Is the information insufficient, redundant, or contradictory? "
|
||||
"Should you draw a diagram or figure of the problem? "
|
||||
"What are the boundaries of the problem? "
|
||||
"Can you separate the various parts of the problem?",
|
||||
""};
|
||||
|
||||
if (show_progress) {
|
||||
printf("key overflow\n");
|
||||
@@ -903,7 +903,7 @@ test_populate_ros3_fa(void)
|
||||
{
|
||||
H5FD_ros3_fapl_ext_t fa = {{0, 0, "", "", ""}, ""};
|
||||
const char *values[] = {"us-east-2", "AKIAIMC3D3XLYXLN5COA",
|
||||
"ugs5aVVnLFCErO/8uW14iWE3K5AgXMpsMlWneO/+", ""};
|
||||
"ugs5aVVnLFCErO/8uW14iWE3K5AgXMpsMlWneO/+", ""};
|
||||
JSVERIFY(1, h5tools_populate_ros3_fapl(&fa, values), "unable to set use case")
|
||||
JSVERIFY(1, fa.fa.version, "version check")
|
||||
JSVERIFY(1, fa.fa.authenticate, "should authenticate")
|
||||
|
||||
+10
-10
@@ -20,16 +20,16 @@
|
||||
/* command-line options: short and long-named parameters */
|
||||
static const char *s_opts = "d:f:hi:o:ps:vVE*";
|
||||
static struct h5_long_options l_opts[] = {{"destination", require_arg, 'd'},
|
||||
{"flag", require_arg, 'f'},
|
||||
{"help", no_arg, 'h'},
|
||||
{"input", require_arg, 'i'},
|
||||
{"output", require_arg, 'o'},
|
||||
{"parents", no_arg, 'p'},
|
||||
{"source", require_arg, 's'},
|
||||
{"verbose", no_arg, 'v'},
|
||||
{"version", no_arg, 'V'},
|
||||
{"enable-error-stack", optional_arg, 'E'},
|
||||
{NULL, 0, '\0'}};
|
||||
{"flag", require_arg, 'f'},
|
||||
{"help", no_arg, 'h'},
|
||||
{"input", require_arg, 'i'},
|
||||
{"output", require_arg, 'o'},
|
||||
{"parents", no_arg, 'p'},
|
||||
{"source", require_arg, 's'},
|
||||
{"verbose", no_arg, 'v'},
|
||||
{"version", no_arg, 'V'},
|
||||
{"enable-error-stack", optional_arg, 'E'},
|
||||
{NULL, 0, '\0'}};
|
||||
static char *fname_src = NULL;
|
||||
static char *fname_dst = NULL;
|
||||
static char *oname_src = NULL;
|
||||
|
||||
@@ -44,7 +44,7 @@ typedef struct h5dump_table_list_t {
|
||||
table_t *group_table; /* Table of groups */
|
||||
table_t *dset_table; /* Table of datasets */
|
||||
table_t *type_table; /* Table of datatypes */
|
||||
} * tables;
|
||||
} *tables;
|
||||
} h5dump_table_list_t;
|
||||
|
||||
extern h5dump_table_list_t table_list;
|
||||
|
||||
@@ -5697,13 +5697,13 @@ test_objs_strings(const char *fname1, const char *fname2)
|
||||
|
||||
hsize_t dims2[] = {20};
|
||||
char string2A[20][10] = {"ab cd ef1", "ab cd ef2", "ab cd ef3", "ab cd ef4", "ab cd ef5",
|
||||
"ab cd ef6", "ab cd ef7", "ab cd ef8", "ab cd 9", "ab cd 0",
|
||||
"ab cd 1", "ab cd 2", "ab cd ef3", "ab cd ef4", "ab cd ef5",
|
||||
"ab cd ef6", "ab cd ef7", "ab cd ef8", "ab cd ef9", "ab cd ef0"};
|
||||
"ab cd ef6", "ab cd ef7", "ab cd ef8", "ab cd 9", "ab cd 0",
|
||||
"ab cd 1", "ab cd 2", "ab cd ef3", "ab cd ef4", "ab cd ef5",
|
||||
"ab cd ef6", "ab cd ef7", "ab cd ef8", "ab cd ef9", "ab cd ef0"};
|
||||
char string2B[20][10] = {"ab cd ef1", "ab cd ef2", "ab cd ef3", "ab cd ef4", "ab cd ef5",
|
||||
"ab cd ef6", "ab cd ef7", "ab cd ef8", "ab cd ef9", "ab cd ef0",
|
||||
"ab cd ef1", "ab cd ef2", "ab cd 3", "ab cd 4", "ab cd 5",
|
||||
"ab cd 6", "ab cd ef7", "ab cd ef8", "ab cd ef9", "ab cd ef0"};
|
||||
"ab cd ef6", "ab cd ef7", "ab cd ef8", "ab cd ef9", "ab cd ef0",
|
||||
"ab cd ef1", "ab cd ef2", "ab cd 3", "ab cd 4", "ab cd 5",
|
||||
"ab cd 6", "ab cd ef7", "ab cd ef8", "ab cd ef9", "ab cd ef0"};
|
||||
|
||||
hsize_t dims3[] = {27};
|
||||
char string3A[27][6] = {"abcd0", "abcd1", "abcd2", "abcd3", "abcd4", "abcd5", "abcd6", "abcd7", "abcd8",
|
||||
@@ -5885,9 +5885,9 @@ write_attr_strings(hid_t loc_id, const char *dset_name, hid_t fid,
|
||||
/* create 3D attributes with dimension [4][3][2], 24 elements */
|
||||
hsize_t dims3[3] = {4, 3, 2};
|
||||
char buf13[4][3][2][STR_SIZE] = {{{"ab", "cd"}, {"ef", "gh"}, {"ij", "kl"}},
|
||||
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
|
||||
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
|
||||
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
|
||||
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
|
||||
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
|
||||
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
|
||||
char *buf13a[4][3][2]; /* VL string */
|
||||
char buf23[4][3][2]; /* bitfield, opaque */
|
||||
s_t buf33[4][3][2]; /* compound */
|
||||
@@ -6874,9 +6874,9 @@ write_attr_in(hid_t loc_id, const char *dset_name, hid_t fid,
|
||||
/* create 3D attributes with dimension [4][3][2], 24 elements */
|
||||
hsize_t dims3[3] = {4, 3, 2};
|
||||
char buf13[4][3][2][STR_SIZE] = {{{"ab", "cd"}, {"ef", "gh"}, {"ij", "kl"}},
|
||||
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
|
||||
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
|
||||
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
|
||||
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
|
||||
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
|
||||
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
|
||||
char *buf13a[4][3][2]; /* VL string */
|
||||
char buf23[4][3][2]; /* bitfield, opaque */
|
||||
s_t buf33[4][3][2]; /* compound */
|
||||
@@ -7865,9 +7865,9 @@ write_dset_in(hid_t loc_id, const char *dset_name, hid_t fid,
|
||||
/* create 3D attributes with dimension [4][3][2], 24 elements */
|
||||
hsize_t dims3[3] = {4, 3, 2};
|
||||
char buf13[4][3][2][STR_SIZE] = {{{"ab", "cd"}, {"ef", "gh"}, {"ij", "kl"}},
|
||||
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
|
||||
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
|
||||
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
|
||||
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
|
||||
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
|
||||
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
|
||||
char *buf13a[4][3][2]; /* VL string */
|
||||
char buf23[4][3][2]; /* bitfield, opaque */
|
||||
s_t buf33[4][3][2]; /* compound */
|
||||
|
||||
@@ -1797,14 +1797,14 @@ gent_str(void)
|
||||
|
||||
hsize_t dims2[] = {20};
|
||||
char string2[20][10] = {"ab cd ef1", "ab cd ef2", "ab cd ef3", "ab cd ef4", "ab cd ef5",
|
||||
"ab cd ef6", "ab cd ef7", "ab cd ef8", "ab cd ef9", "ab cd ef0",
|
||||
"ab cd ef1", "ab cd ef2", "ab cd ef3", "ab cd ef4", "ab cd ef5",
|
||||
"ab cd ef6", "ab cd ef7", "ab cd ef8", "ab cd ef9", "ab cd ef0"};
|
||||
"ab cd ef6", "ab cd ef7", "ab cd ef8", "ab cd ef9", "ab cd ef0",
|
||||
"ab cd ef1", "ab cd ef2", "ab cd ef3", "ab cd ef4", "ab cd ef5",
|
||||
"ab cd ef6", "ab cd ef7", "ab cd ef8", "ab cd ef9", "ab cd ef0"};
|
||||
|
||||
hsize_t dims3[] = {27};
|
||||
char string3[27][6] = {"abcd0", "abcd1", "abcd2", "abcd3", "abcd4", "abcd5", "abcd6", "abcd7", "abcd8",
|
||||
"abcd9", "abcd0", "abcd1", "abcd2", "abcd3", "abcd4", "abcd5", "abcd6", "abcd7",
|
||||
"abcd8", "abcd9", "abcd0", "abcd1", "abcd2", "abcd3", "abcd4", "abcd5", "abcd6"};
|
||||
"abcd9", "abcd0", "abcd1", "abcd2", "abcd3", "abcd4", "abcd5", "abcd6", "abcd7",
|
||||
"abcd8", "abcd9", "abcd0", "abcd1", "abcd2", "abcd3", "abcd4", "abcd5", "abcd6"};
|
||||
|
||||
int i, j, k, l;
|
||||
|
||||
@@ -2097,7 +2097,7 @@ gent_enum(void)
|
||||
hid_t file, type, space, dset;
|
||||
int val;
|
||||
enumtype data[] = {RED, GREEN, BLUE, GREEN, WHITE, WHITE, BLACK, GREEN, BLUE, RED,
|
||||
RED, BLUE, GREEN, BLACK, WHITE, RED, WHITE, GREEN, GREEN, BLUE};
|
||||
RED, BLUE, GREEN, BLACK, WHITE, RED, WHITE, GREEN, GREEN, BLUE};
|
||||
hsize_t size[1] = {NELMTS(data)};
|
||||
|
||||
file = H5Fcreate(FILE15, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
|
||||
@@ -7263,31 +7263,31 @@ gent_packedbits(void)
|
||||
|
||||
struct {
|
||||
uint8_t arr[F66_XDIM][F66_YDIM8];
|
||||
} * dsetu8;
|
||||
} *dsetu8;
|
||||
struct {
|
||||
uint16_t arr[F66_XDIM][F66_YDIM16];
|
||||
} * dsetu16;
|
||||
} *dsetu16;
|
||||
struct {
|
||||
uint32_t arr[F66_XDIM][F66_YDIM32];
|
||||
} * dsetu32;
|
||||
} *dsetu32;
|
||||
struct {
|
||||
uint64_t arr[F66_XDIM][F66_YDIM64];
|
||||
} * dsetu64;
|
||||
} *dsetu64;
|
||||
struct {
|
||||
int8_t arr[F66_XDIM][F66_YDIM8];
|
||||
} * dset8;
|
||||
} *dset8;
|
||||
struct {
|
||||
int16_t arr[F66_XDIM][F66_YDIM16];
|
||||
} * dset16;
|
||||
} *dset16;
|
||||
struct {
|
||||
int32_t arr[F66_XDIM][F66_YDIM32];
|
||||
} * dset32;
|
||||
} *dset32;
|
||||
struct {
|
||||
int64_t arr[F66_XDIM][F66_YDIM64];
|
||||
} * dset64;
|
||||
} *dset64;
|
||||
struct {
|
||||
double arr[F66_XDIM][F66_YDIM8];
|
||||
} * dsetdbl;
|
||||
} *dsetdbl;
|
||||
|
||||
uint8_t valu8bits;
|
||||
uint16_t valu16bits;
|
||||
@@ -7506,31 +7506,31 @@ gent_attr_intsize(void)
|
||||
|
||||
struct {
|
||||
uint8_t arr[F66_XDIM][F66_YDIM8];
|
||||
} * dsetu8;
|
||||
} *dsetu8;
|
||||
struct {
|
||||
uint16_t arr[F66_XDIM][F66_YDIM16];
|
||||
} * dsetu16;
|
||||
} *dsetu16;
|
||||
struct {
|
||||
uint32_t arr[F66_XDIM][F66_YDIM32];
|
||||
} * dsetu32;
|
||||
} *dsetu32;
|
||||
struct {
|
||||
uint64_t arr[F66_XDIM][F66_YDIM64];
|
||||
} * dsetu64;
|
||||
} *dsetu64;
|
||||
struct {
|
||||
int8_t arr[F66_XDIM][F66_YDIM8];
|
||||
} * dset8;
|
||||
} *dset8;
|
||||
struct {
|
||||
int16_t arr[F66_XDIM][F66_YDIM16];
|
||||
} * dset16;
|
||||
} *dset16;
|
||||
struct {
|
||||
int32_t arr[F66_XDIM][F66_YDIM64];
|
||||
} * dset32;
|
||||
} *dset32;
|
||||
struct {
|
||||
int64_t arr[F66_XDIM][F66_YDIM64];
|
||||
} * dset64;
|
||||
} *dset64;
|
||||
struct {
|
||||
double arr[F66_XDIM][F66_YDIM8];
|
||||
} * dsetdbl;
|
||||
} *dsetdbl;
|
||||
|
||||
uint8_t valu8bits;
|
||||
uint16_t valu16bits;
|
||||
@@ -8621,31 +8621,31 @@ gent_intscalars(void)
|
||||
|
||||
struct {
|
||||
uint8_t arr[F73_XDIM][F73_YDIM8];
|
||||
} * dsetu8;
|
||||
} *dsetu8;
|
||||
struct {
|
||||
uint16_t arr[F73_XDIM][F73_YDIM16];
|
||||
} * dsetu16;
|
||||
} *dsetu16;
|
||||
struct {
|
||||
uint32_t arr[F73_XDIM][F73_YDIM32];
|
||||
} * dsetu32;
|
||||
} *dsetu32;
|
||||
struct {
|
||||
uint64_t arr[F73_XDIM][F73_YDIM64];
|
||||
} * dsetu64;
|
||||
} *dsetu64;
|
||||
struct {
|
||||
int8_t arr[F73_XDIM][F73_YDIM8];
|
||||
} * dset8;
|
||||
} *dset8;
|
||||
struct {
|
||||
int16_t arr[F73_XDIM][F73_YDIM16];
|
||||
} * dset16;
|
||||
} *dset16;
|
||||
struct {
|
||||
int32_t arr[F73_XDIM][F73_YDIM32];
|
||||
} * dset32;
|
||||
} *dset32;
|
||||
struct {
|
||||
int64_t arr[F73_XDIM][F73_YDIM64];
|
||||
} * dset64;
|
||||
} *dset64;
|
||||
struct {
|
||||
double arr[F73_XDIM][F73_YDIM8];
|
||||
} * dsetdbl;
|
||||
} *dsetdbl;
|
||||
|
||||
uint8_t valu8bits;
|
||||
uint16_t valu16bits;
|
||||
@@ -8882,31 +8882,31 @@ gent_attr_intscalars(void)
|
||||
|
||||
struct {
|
||||
uint8_t arr[F73_XDIM][F73_YDIM8];
|
||||
} * dsetu8;
|
||||
} *dsetu8;
|
||||
struct {
|
||||
uint16_t arr[F73_XDIM][F73_YDIM16];
|
||||
} * dsetu16;
|
||||
} *dsetu16;
|
||||
struct {
|
||||
uint32_t arr[F73_XDIM][F73_YDIM32];
|
||||
} * dsetu32;
|
||||
} *dsetu32;
|
||||
struct {
|
||||
uint64_t arr[F73_XDIM][F73_YDIM64];
|
||||
} * dsetu64;
|
||||
} *dsetu64;
|
||||
struct {
|
||||
int8_t arr[F73_XDIM][F73_YDIM8];
|
||||
} * dset8;
|
||||
} *dset8;
|
||||
struct {
|
||||
int16_t arr[F73_XDIM][F73_YDIM16];
|
||||
} * dset16;
|
||||
} *dset16;
|
||||
struct {
|
||||
int32_t arr[F73_XDIM][F73_YDIM32];
|
||||
} * dset32;
|
||||
} *dset32;
|
||||
struct {
|
||||
int64_t arr[F73_XDIM][F73_YDIM64];
|
||||
} * dset64;
|
||||
} *dset64;
|
||||
struct {
|
||||
double arr[F73_XDIM][F73_YDIM8];
|
||||
} * dsetdbl;
|
||||
} *dsetdbl;
|
||||
|
||||
uint8_t valu8bits;
|
||||
uint16_t valu16bits;
|
||||
@@ -9985,31 +9985,31 @@ gent_intsattrs(void)
|
||||
|
||||
struct {
|
||||
uint8_t arr[F66_XDIM][F66_YDIM8];
|
||||
} * dsetu8;
|
||||
} *dsetu8;
|
||||
struct {
|
||||
uint16_t arr[F66_XDIM][F66_YDIM16];
|
||||
} * dsetu16;
|
||||
} *dsetu16;
|
||||
struct {
|
||||
uint32_t arr[F66_XDIM][F66_YDIM32];
|
||||
} * dsetu32;
|
||||
} *dsetu32;
|
||||
struct {
|
||||
uint64_t arr[F66_XDIM][F66_YDIM64];
|
||||
} * dsetu64;
|
||||
} *dsetu64;
|
||||
struct {
|
||||
int8_t arr[F66_XDIM][F66_YDIM8];
|
||||
} * dset8;
|
||||
} *dset8;
|
||||
struct {
|
||||
int16_t arr[F66_XDIM][F66_YDIM16];
|
||||
} * dset16;
|
||||
} *dset16;
|
||||
struct {
|
||||
int32_t arr[F66_XDIM][F66_YDIM32];
|
||||
} * dset32;
|
||||
} *dset32;
|
||||
struct {
|
||||
int64_t arr[F66_XDIM][F66_YDIM64];
|
||||
} * dset64;
|
||||
} *dset64;
|
||||
struct {
|
||||
double arr[F66_XDIM][F66_YDIM8];
|
||||
} * dsetdbl;
|
||||
} *dsetdbl;
|
||||
|
||||
uint8_t *asetu8 = NULL;
|
||||
uint16_t *asetu16 = NULL;
|
||||
@@ -10345,13 +10345,13 @@ gent_floatsattrs(void)
|
||||
|
||||
struct {
|
||||
float arr[F89_XDIM][F89_YDIM32];
|
||||
} * dset32;
|
||||
} *dset32;
|
||||
struct {
|
||||
double arr[F89_XDIM][F89_YDIM64];
|
||||
} * dset64;
|
||||
} *dset64;
|
||||
struct {
|
||||
long double arr[F89_XDIM][F89_YDIM128];
|
||||
} * dset128;
|
||||
} *dset128;
|
||||
|
||||
float *aset32 = NULL;
|
||||
double *aset64 = NULL;
|
||||
@@ -10649,7 +10649,7 @@ gent_intsfourdims(void)
|
||||
hsize_t dims[F81_RANK];
|
||||
struct {
|
||||
uint32_t arr[F81_ZDIM][F81_YDIM][F81_XDIM][F81_WDIM];
|
||||
} * dset1;
|
||||
} *dset1;
|
||||
unsigned int i, j, k, l;
|
||||
|
||||
fid = H5Fcreate(FILE81, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
|
||||
@@ -10890,7 +10890,7 @@ gent_compound_complex2(void)
|
||||
buf[i].b[j] = (int)(j - i * 10);
|
||||
for (j = 0; j < dset_array_c_dims[0]; j++)
|
||||
for (k = 0; k < dset_array_c_dims[1]; k++)
|
||||
buf[i].c[j][k] = (float)(j + k + i * 10) + (float)(j)*0.1F;
|
||||
buf[i].c[j][k] = (float)(j + k + i * 10) + (float)(j) * 0.1F;
|
||||
|
||||
/* Set up first nested compound */
|
||||
buf[i].d.nested_a = (double)i;
|
||||
@@ -12025,7 +12025,7 @@ gent_float16(void)
|
||||
|
||||
struct {
|
||||
H5__Float16 arr[F93_XDIM][F93_YDIM];
|
||||
} * dset16;
|
||||
} *dset16;
|
||||
|
||||
H5__Float16 *aset16 = NULL;
|
||||
H5__Float16 val16bits;
|
||||
@@ -12095,7 +12095,7 @@ gent_float16_be(void)
|
||||
|
||||
struct {
|
||||
H5__Float16 arr[F94_XDIM][F94_YDIM];
|
||||
} * dset16;
|
||||
} *dset16;
|
||||
|
||||
H5__Float16 *aset16 = NULL;
|
||||
H5__Float16 val16bits;
|
||||
|
||||
@@ -62,7 +62,7 @@ gen_cache_image_file(const char *fname)
|
||||
int i, j; /* Local index variables */
|
||||
struct {
|
||||
int arr[50][100];
|
||||
} * buf; /* Buffer for data to write */
|
||||
} *buf; /* Buffer for data to write */
|
||||
H5AC_cache_image_config_t cache_image_config = /* Cache image input configuration */
|
||||
{H5AC__CURR_CACHE_IMAGE_CONFIG_VERSION, true, false, H5AC__CACHE_IMAGE__ENTRY_AGEOUT__NONE};
|
||||
|
||||
|
||||
@@ -151,16 +151,16 @@ create_perf_test_file(const char *fname, int ngrps, int ndsets, int nattrs, hsiz
|
||||
size_t offset, len;
|
||||
herr_t status;
|
||||
char *names[NTYPES] = {"int",
|
||||
"ulong",
|
||||
"float",
|
||||
"double",
|
||||
"fixed string",
|
||||
"enum",
|
||||
"fixed float array",
|
||||
"vlen int array",
|
||||
"vlen strings"};
|
||||
"ulong",
|
||||
"float",
|
||||
"double",
|
||||
"fixed string",
|
||||
"enum",
|
||||
"fixed float array",
|
||||
"vlen int array",
|
||||
"vlen strings"};
|
||||
hid_t types[NTYPES] = {H5T_NATIVE_INT, H5T_NATIVE_UINT64, H5T_NATIVE_FLOAT, H5T_NATIVE_DOUBLE, tid_str,
|
||||
tid_enum, tid_array_f, tid_vlen_i, tid_vlen_s};
|
||||
tid_enum, tid_array_f, tid_vlen_i, tid_vlen_s};
|
||||
hsize_t coords[4][2] = {{0, 1}, {3, 5}, {1, 0}, {2, 4}}, start = 0, stride = 1, count = 1;
|
||||
|
||||
if (nrows < NROWS)
|
||||
|
||||
Reference in New Issue
Block a user