summaryrefslogtreecommitdiffstats
path: root/test/cache_common.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-26 21:45:46 (GMT)
committerGitHub <noreply@github.com>2022-07-26 21:45:46 (GMT)
commitae414872f50187e64cbd6cc8f076c22cf5df2d53 (patch)
treeb616f33f5daa89f213e7c64e04c63afde906e939 /test/cache_common.c
parent213eac2588369f75a11df6bb1788dde33c4b82e2 (diff)
downloadhdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.zip
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.gz
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.bz2
Develop clang 13 format (#1933)
* Update format source to clang 13 * More format changes
Diffstat (limited to 'test/cache_common.c')
-rw-r--r--test/cache_common.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/test/cache_common.c b/test/cache_common.c
index 41aa128..5146073 100644
--- a/test/cache_common.c
+++ b/test/cache_common.c
@@ -137,7 +137,7 @@ static void mark_flush_dep_clean(test_entry_t *entry_ptr);
static herr_t get_initial_load_size(void *udata_ptr, size_t *image_len_ptr, int32_t entry_type);
static herr_t get_final_load_size(const void *image, size_t image_len, void *udata, size_t *actual_len,
int32_t entry_type);
-static void * deserialize(const void *image_ptr, size_t len, void *udata_ptr, hbool_t *dirty_ptr,
+static void *deserialize(const void *image_ptr, size_t len, void *udata_ptr, hbool_t *dirty_ptr,
int32_t entry_type);
static herr_t image_len(const void *thing, size_t *image_len_ptr, int32_t entry_type);
static herr_t pre_serialize(H5F_t *f, void *thing, haddr_t addr, size_t len, haddr_t *new_addr_ptr,
@@ -1805,8 +1805,8 @@ hbool_t
entry_in_cache(H5C_t *cache_ptr, int32_t type, int32_t idx)
{
hbool_t in_cache = FALSE; /* will set to TRUE if necessary */
- test_entry_t * base_addr;
- test_entry_t * entry_ptr;
+ test_entry_t *base_addr;
+ test_entry_t *entry_ptr;
H5C_cache_entry_t *test_ptr = NULL;
HDassert(cache_ptr);
@@ -2807,7 +2807,7 @@ void
cork_entry_type(H5F_t *file_ptr, int32_t type)
{
if (pass) {
- H5C_t * cache_ptr;
+ H5C_t *cache_ptr;
haddr_t baddrs;
cache_ptr = file_ptr->shared->cache;
@@ -2842,7 +2842,7 @@ void
uncork_entry_type(H5F_t *file_ptr, int32_t type)
{
if (pass) {
- H5C_t * cache_ptr;
+ H5C_t *cache_ptr;
haddr_t baddrs;
cache_ptr = file_ptr->shared->cache;
@@ -2877,7 +2877,7 @@ uncork_entry_type(H5F_t *file_ptr, int32_t type)
void
insert_entry(H5F_t *file_ptr, int32_t type, int32_t idx, unsigned int flags)
{
- H5C_t * cache_ptr;
+ H5C_t *cache_ptr;
herr_t result;
hbool_t insert_pinned;
test_entry_t *base_addr;
@@ -3130,9 +3130,9 @@ move_entry(H5C_t *cache_ptr, int32_t type, int32_t idx, hbool_t main_addr)
void
protect_entry(H5F_t *file_ptr, int32_t type, int32_t idx)
{
- H5C_t * cache_ptr;
- test_entry_t * base_addr;
- test_entry_t * entry_ptr;
+ H5C_t *cache_ptr;
+ test_entry_t *base_addr;
+ test_entry_t *entry_ptr;
haddr_t baddrs;
H5C_cache_entry_t *cache_entry_ptr;
@@ -3230,9 +3230,9 @@ protect_entry(H5F_t *file_ptr, int32_t type, int32_t idx)
void
protect_entry_ro(H5F_t *file_ptr, int32_t type, int32_t idx)
{
- H5C_t * cache_ptr;
- test_entry_t * base_addr;
- test_entry_t * entry_ptr;
+ H5C_t *cache_ptr;
+ test_entry_t *base_addr;
+ test_entry_t *entry_ptr;
H5C_cache_entry_t *cache_entry_ptr;
if (pass) {
@@ -3526,7 +3526,7 @@ row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
hbool_t do_moves, hbool_t move_to_main_addr, hbool_t do_destroys,
hbool_t do_mult_ro_protects, int dirty_destroys, int dirty_unprotects)
{
- H5C_t * cache_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
int32_t type = 0;
int32_t idx;
int32_t local_max_index;
@@ -3856,7 +3856,7 @@ void
hl_row_major_scan_forward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose, hbool_t reset_stats,
hbool_t display_stats, hbool_t display_detailed_stats, hbool_t do_inserts)
{
- H5C_t * cache_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
int32_t type = 0;
int32_t idx;
int32_t i;
@@ -3950,7 +3950,7 @@ row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
hbool_t do_moves, hbool_t move_to_main_addr, hbool_t do_destroys,
hbool_t do_mult_ro_protects, int dirty_destroys, int dirty_unprotects)
{
- H5C_t * cache_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
int32_t type = NUMBER_OF_ENTRY_TYPES - 1;
int32_t idx;
int32_t local_max_index;
@@ -4208,7 +4208,7 @@ void
hl_row_major_scan_backward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose, hbool_t reset_stats,
hbool_t display_stats, hbool_t display_detailed_stats, hbool_t do_inserts)
{
- H5C_t * cache_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
int32_t type = NUMBER_OF_ENTRY_TYPES - 1;
int32_t idx;
int32_t i;
@@ -4301,7 +4301,7 @@ col_major_scan_forward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
hbool_t display_stats, hbool_t display_detailed_stats, hbool_t do_inserts,
int dirty_unprotects)
{
- H5C_t * cache_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
int32_t type = 0;
int32_t idx;
int32_t local_max_index[NUMBER_OF_ENTRY_TYPES];
@@ -4393,7 +4393,7 @@ hl_col_major_scan_forward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose, h
hbool_t display_stats, hbool_t display_detailed_stats, hbool_t do_inserts,
int dirty_unprotects)
{
- H5C_t * cache_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
int32_t type = 0;
int32_t idx;
int32_t lag = 200;
@@ -4496,7 +4496,7 @@ col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, int32_t lag, hbool_t
hbool_t display_stats, hbool_t display_detailed_stats, hbool_t do_inserts,
int dirty_unprotects)
{
- H5C_t * cache_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
int mile_stone = 1;
int32_t type;
int32_t idx;
@@ -4600,7 +4600,7 @@ hl_col_major_scan_backward(H5F_t *file_ptr, int32_t max_index, hbool_t verbose,
hbool_t display_stats, hbool_t display_detailed_stats, hbool_t do_inserts,
int dirty_unprotects)
{
- H5C_t * cache_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
int32_t type = 0;
int32_t idx = -1;
int32_t lag = 50;
@@ -4961,8 +4961,8 @@ check_and_validate_cache_hit_rate(hid_t file_id, double *hit_rate_ptr, hbool_t d
int64_t cache_accesses = 0;
double expected_hit_rate;
double hit_rate;
- H5F_t * file_ptr = NULL;
- H5C_t * cache_ptr = NULL;
+ H5F_t *file_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
/* get a pointer to the files internal data structure */
if (pass) {
@@ -5090,8 +5090,8 @@ check_and_validate_cache_size(hid_t file_id, size_t *max_size_ptr, size_t *min_c
size_t cur_size;
uint32_t expected_cur_num_entries;
int cur_num_entries;
- H5F_t * file_ptr = NULL;
- H5C_t * cache_ptr = NULL;
+ H5F_t *file_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
/* get a pointer to the files internal data structure */
if (pass) {
@@ -5253,8 +5253,8 @@ void
validate_mdc_config(hid_t file_id, H5AC_cache_config_t *ext_config_ptr, hbool_t compare_init, int test_num)
{
static char msg[256];
- H5F_t * file_ptr = NULL;
- H5C_t * cache_ptr = NULL;
+ H5F_t *file_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
H5AC_cache_config_t scratch;
H5C_auto_size_ctl_t int_config;