diff options
author | Robb Matzke <matzke@llnl.gov> | 1999-07-28 19:37:35 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1999-07-28 19:37:35 (GMT) |
commit | 2681ce4a86ca3c6400ba242bc336d23c77753ff5 (patch) | |
tree | f4cb88dcd07675a7a4c76141a080148cee1eabc7 /src/H5MF.c | |
parent | e4834c43ce6528308ebd5375bd4c7a0df88af427 (diff) | |
download | hdf5-2681ce4a86ca3c6400ba242bc336d23c77753ff5.zip hdf5-2681ce4a86ca3c6400ba242bc336d23c77753ff5.tar.gz hdf5-2681ce4a86ca3c6400ba242bc336d23c77753ff5.tar.bz2 |
[svn-r1549] Changes since 19990728
----------------------
./src/H5B.c [1.3]
./src/H5D.c [1.3]
./src/H5F.c [1.3]
./src/H5Farray.c [1.3]
./src/H5Fcore.c [1.3]
./src/H5Ffamily.c [1.3]
./src/H5Fistore.c [1.3]
./src/H5Flow.c [1.3]
./src/H5Fmpio.c [1.3]
./src/H5Fprivate.h [1.3]
./src/H5Fsplit.c [1.3]
./src/H5Fstdio.c [1.3]
./src/H5G.c [1.3]
./src/H5HG.c [1.3]
./src/H5HL.c [1.3]
./src/H5MF.c [1.3]
./src/H5O.c [1.3]
./src/H5Odtype.c [1.3]
./src/H5Oefl.c [1.3]
./src/H5P.c [1.3]
./src/H5Smpio.c [1.3]
./src/H5T.c [1.3]
./src/H5detect.c [1.3]
./tools/h5debug.c [1.3]
Some of the H5F_addr_* functions were optimized away.
./src/H5D.c [1.3]
Fixed the return values from NULL to FAIL on one MPI-IO
function.
Diffstat (limited to 'src/H5MF.c')
-rw-r--r-- | src/H5MF.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -124,7 +124,7 @@ H5MF_alloc(H5F_t *f, intn op, hsize_t size, haddr_t *addr_p/*out*/) if (blk.size > size) { /* Free the second part of the free block */ - H5F_addr_inc (&(blk.addr), size); + blk.addr += size; blk.size -= size; H5MF_xfree (f, blk.addr, blk.size); } @@ -150,8 +150,7 @@ H5MF_alloc(H5F_t *f, intn op, hsize_t size, haddr_t *addr_p/*out*/) blk.addr -= f->shared->base_addr; /* Did we extend the size of the hdf5 data? */ - tmp_addr = blk.addr; - H5F_addr_inc(&tmp_addr, blk.size); + tmp_addr = blk.addr + blk.size; if (H5F_addr_gt(tmp_addr, f->shared->hdf5_eof)) { f->shared->hdf5_eof = tmp_addr; } @@ -168,7 +167,7 @@ H5MF_alloc(H5F_t *f, intn op, hsize_t size, haddr_t *addr_p/*out*/) blk.size -= n; } if (blk.size > size) { - H5F_addr_inc (&(blk.addr), size); + blk.addr += size; blk.size -= size; H5MF_xfree (f, blk.addr, blk.size); } @@ -209,7 +208,7 @@ H5MF_xfree(H5F_t *f, haddr_t addr, hsize_t size) if (!H5F_addr_defined(addr) || 0 == size) { HRETURN(SUCCEED); } - assert(!H5F_addr_zerop(addr)); + assert(addr!=0); /* * Insert this free block into the free list without attempting to @@ -285,7 +284,7 @@ H5MF_realloc (H5F_t *f, intn op, hsize_t orig_size, haddr_t orig_addr, "unable to allocate new file memory"); } } else { - H5F_addr_undef (new_addr_p); + *new_addr_p = H5F_ADDR_UNDEF; } } else if (0==new_size) { @@ -295,7 +294,7 @@ H5MF_realloc (H5F_t *f, intn op, hsize_t orig_size, haddr_t orig_addr, HRETURN_ERROR (H5E_RESOURCE, H5E_CANTINIT, FAIL, "unable to free old file memory"); } - H5F_addr_undef (new_addr_p); + *new_addr_p = H5F_ADDR_UNDEF; } else if (new_size > orig_size) { /* Size is getting larger */ |