From acff290b9458ec8fd24ce16dac2bb3e66a818105 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Mon, 5 May 2014 10:54:56 -0500 Subject: [svn-r25161] Removed some C++-style comments from H5FDcore.c. Tested on: 32-bit LE linux (jam) Tested with HDF5_DRIVER set to "core_paged". --- src/H5FDcore.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/H5FDcore.c b/src/H5FDcore.c index ee3a40e..d1d4337 100644 --- a/src/H5FDcore.c +++ b/src/H5FDcore.c @@ -105,9 +105,6 @@ typedef struct H5FD_core_fapl_t { /* Allocate memory in multiples of this size by default */ #define H5FD_CORE_INCREMENT 8192 -/* Define the block size for aggregation */ -//#define H5FD_CORE_BLOCK_SIZE 524288 /* 512 K */ - /* These macros check for overflow of various quantities. These macros * assume that file_offset_t is signed and haddr_t and size_t are unsigned. * @@ -223,9 +220,6 @@ H5FD_core_add_dirty_region(H5FD_core_t *file, haddr_t start, haddr_t end) fprintf(stderr, "Add region: (%llu, %llu)\n", start, end); #endif -// /* Adjust the dirty region to the nearest block boundaries */ -// if(start % H5FD_CORE_BLOCK_SIZE != 0) { -// start = (start / H5FD_CORE_BLOCK_SIZE) * H5FD_CORE_BLOCK_SIZE; /* Adjust the dirty region to the nearest block boundaries */ if(start % file->bstore_page_size != 0) { start = (start / file->bstore_page_size) * file->bstore_page_size; @@ -233,8 +227,6 @@ fprintf(stderr, "Add region: (%llu, %llu)\n", start, end); was_adjusted = TRUE; #endif } -// if(end % H5FD_CORE_BLOCK_SIZE != (H5FD_CORE_BLOCK_SIZE - 1)) { -// end = (((end / H5FD_CORE_BLOCK_SIZE) + 1) * H5FD_CORE_BLOCK_SIZE) - 1; if(end % file->bstore_page_size != (file->bstore_page_size - 1)) { end = (((end / file->bstore_page_size) + 1) * file->bstore_page_size) - 1; if(end > file->eof){ -- cgit v0.12